草庐IT

install-configuration

全部标签

python - -e, --editable 选项何时对 pip install 有用?

-e或--editable选项何时对pipinstall有用?对于某些项目,requirements.txt中的最后一行是-e.。它的具体作用是什么? 最佳答案 正如手册页所说:-e,--editableInstallaprojectineditablemode(i.e.setuptools"developmode")fromalocalprojectpathoraVCSurl.因此,当您尝试在本地安装软件包时,通常会在您的系统上开发它时使用它。它只会将包链接到原始位置,基本上意味着对原始包的任何更改都会直接反射(reflect)在

python - 如何使用 'pip install' 在 Windows 上安装 NumPy?

我要安装NumPy使用pipinstallnumpy命令,但我收到以下错误:RuntimeError:Brokentoolchain:cannotlinkasimpleCprogram我正在使用Windows732位,Python2.7.9,pip6.1.1和一些MSVC编译器。我认为它使用Visual C++ 2010Express中的编译器,但实际上我不确定是哪一个,因为我安装了多个VisualStudio。我知道有适用于Windows的预构建包,但有什么方法可以通过键入pipinstallnumpy来实现吗?我认为在使用之前可能需要编译其他包,所以它不仅仅是关于NumPy。我想用

python - "brew install"和 "pip install"之间有区别吗?

我想在我的Mac上安装枕头。我有python2.7和python3.4,它们都与Homebrew一起安装。我尝试了brewinstall枕头并且效果很好,但仅适用于python2.7。我还没有找到为python3安装它的方法。我试过brewinstallpillow3但没有运气。我在SO上找到了一篇帖子,上面写着首先用Homebrew安装pip3,然后使用pip3install枕头。碰巧,我已经安装了pip3。我从来不理解使用pip安装python包和使用Homebrew安装它之间的区别(如果有的话)。你能给我解释一下吗?此外,如果有可用的公式,是否最好使用Homebrew安装?如果用

Python:在 pip install tld 时无法卸载 'six'

$pipinstalltldCollectingtldUsingcachedhttps://files.pythonhosted.org/packages/fa/78/dbeaeb20db795c42deb81271fd65a35c040ce2e946024eaeef5c6b184176/tld-0.9-py2.py3-none-any.whlCollectingsix>=1.9(fromtld)Usingcachedhttps://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca4

python - "pip install"和 "python -m pip install"有什么区别?

我有Python3.4.1的本地版本,我可以运行python-mpipinstall,但我找不到pip二进制文件来运行pipinstall。这两者有什么区别? 最佳答案 他们做同样的事情。事实上,分发Python模块的文档是justupdated建议使用python-mpip而不是pip可执行文件,因为更容易判断将使用哪个版本的python来实际运行pip那样。这里有一些更具体的“证据”,不仅仅是相信我的话和我链接的错误报告:)如果你看一下pip可执行脚本,它就是这样做的:frompkg_resourcesimportload_en

python - brew install python,然后是: "python-2.7.6 already installed, it' s just not linked"

免责声明:菜鸟OSX10.8.5当我在bash中安装python时,我得到了thiswarninganderror:Warning:Couldnotlinkpython.Unlinking...Error:The'brewlink'stepdidnotcompletesuccessfullyTheformulabuilt,butisnotsymlinkedinto/usr/localYoucantryagainusing'brewlinkpython所以我继续打字brewlinkpython得到了Linking/usr/local/Cellar/python/2.7.6...Warni

python - 如何在 install_requires 中指定版本范围(setuptools、distribute)

我想制作一个依赖于特定版本范围的包,例如>=0.5.0,.install_requires有可能吗?选项,如果是的话应该怎么做? 最佳答案 根据thedocumentation,您的语法应该可以正常工作。该文档指出:setuptoolsandpkg_resourcesuseacommonsyntaxforspecifyingaproject'srequireddependencies.Thissyntaxconsistsofaproject'sPyPIname,optionallyfollowedbyacomma-separated

python - Ipython没有可用的readline并且pip install readline错误

我安装了ipython,但它没有readline选项。我首先下载了gnureadline并编译安装。不知道这是否是一个合适的解决方案,但这是我想到的第一件事。它仍然无法正常工作,并出现与以前相同的错误:WARNING:Readlineservicesnotavailableonthisplatform.WARNING:Theauto-indentfeaturerequiresthereadlinelibrary然后我尝试使用pipinstallreadline并收到以下错误。任何帮助将不胜感激:runninginstallrunningbuildrunningbuild_extbuil

python - 如何获得 setuptools 和 easy_install?

我从这里下载了ez_setup代码:http://peak.telecommunity.com/dist/ez_setup.py并运行它,但我认为setuptools没有正确安装。当我尝试使用easy_install打开鸡蛋时,我收到了NameError。有什么想法吗?这里是具体的错误:Traceback(mostrecentcalllast):File"C:...setup.py",line223,ineasy_installeggsetup.pyNameError:name'easy_install'isnotdefined 最佳答案

python - 如何将 easy_install 指向 vcvarsall.bat?

我已经安装了MSVC++2010Express,我的vcvarsall.bat文件位于C:\ProgramFiles\MicrosoftVisualStudio10.0\VC,它位于我的系统PATH中。当我运行easy_install时,它找不到vcvarsall.bat。我需要在distutils.cfg文件中设置什么以将其指向我的MSVC++安装吗?G:\>easy_installhg-gitinstall_dirC:\Python26\Lib\site-packages\Searchingforhg-gitBestmatch:hg-git0.2.6Processinghg_git