草庐IT

pip-xcfgd

全部标签

python - 更新 Python 3.6 的 pip3?

我刚刚使用Homebrew从Python3.4升级到Python3.6。输出状态:Pip,setuptools,andwheelhavebeeninstalled.Toupdatethempip3install--upgradepipsetuptoolswheelYoucaninstallPythonpackageswithpip3installTheywillinstallintothesite-packagedirectory/usr/local/lib/python3.6/site-packages我试着跑pip3install--upgradepipsetuptoolswhee

python - pip 安装 Pandas : installing dependencies error

我正在尝试在虚拟环境中pipinstallpandas,但我遇到了一个我真的不明白的错误。我猜它与Doublerequirementgiven有关,但我真的不知道从这里该何去何从。 最佳答案 我在Python3.4上遇到了同样的错误。而这个错误的根本原因是"pandas0.21-0.22nolongersupportsPython3.4"查看有关此问题的更多信息:https://github.com/pandas-dev/pandas/issues/20775ProblemwithinstallingpandasforPython3

python - 在 python idle 中运行 pip

我对运行pip很好奇。每次我像这样在Windows的命令shell中运行pipc:\python27\script>pipinstallnumpy但是,我想知道我是否可以在pythonidle中运行它。importpippip.install("numpy")不幸的是,它不起作用。 最佳答案 仍然无法发表评论,所以我添加了另一个答案。皮普有过severalentrypoints在过去。并且不建议直接或在进程中调用pip(如果你仍然想这样做,“runpy”是一种recommended):importsysimportrunpysys.

python - pip 安装要求失败

我在尝试为我的Django项目安装要求时遇到问题。我无法弄清楚为什么会出现此错误。有人能指引我正确的方向吗?>Runningsetup.pyegg_infoforpackagedjango-staticfilesTraceback(mostrecentcalllast):File"",line14,inFile"/Users/glosseyvilly/Desktop/Workspace/chris_dev/mysite-env/build/django-staticfiles/setup.py",line128,in'versiontools>=1.6',File"/System/Li

python - 使用 pip 时如何避免重建现有轮子?

在pip1.5.X中,我们可以使用pipwheel构建和缓存一个包的wheel,然后使用--use-wheel使用pipinstall从缓存的wheel安装。我正在尝试在环境设置脚本中使用此功能。这就是我正在尝试的:pipwheel--wheel-dir=/tmpCython==0.19.2pipinstallCython==0.19.2--use-wheel--no-index--find-links=/tmp我希望pipwheel在构建轮子之前检查轮子是否已经存在。但它似乎忽略了现有的轮子并每次都构建。是否可以避免这种情况? 最佳答案

python - 使用 virtualenv 和 pip 为 Python 2.7 安装 ipdb 时出错

当我尝试安装ipdb时,我遇到了以下问题:$pipinstallipdbCollectingipdbUsingcachedipdb-0.10.3.tar.gzCompleteoutputfromcommandpythonsetup.pyegg_info:errorinipdbsetupcommand:Invalidenvironmentmarker:python_version>="3.3"如何以最简单的方式安装ipdb?(我使用的是macOSSierra10.12.4、virtualenv1.11.6、python2.7.10、pip9.0.1) 最佳答案

python - 我应该使用 brew 还是 pip 来安装 matplotlib?

我使用的是MacOSX10.8,之前我使用的是macports,但我切换到了brew。Snows-MacBook-Pro:~Mac$brewsearchmatplotlibsamueljohn/python/matplotlibSnows-MacBook-Pro:~Mac$pipsearchmatplotlibmatplotlib-Pythonplottingpackage所以我的问题很简单。我应该使用brew还是pip来安装matplotlib?有什么区别吗?我的目标是启动并运行pandas、ipythonnotebook和simpleCV。 最佳答案

python - Pip 在 Windows 7 中挂起

我在Windows7上安装了Python2.7.10和pip。堆栈,什么都不打印,甚至ctrl+c也不起作用,我必须关闭cmd。任务管理器显示3个正在运行的pip.exe*32进程,当我关闭cmd时,我可以杀死其中一个。其他2个只有在重新加载Windows后才会被删除。Python3.5也会发生同样的事情我尝试重新安装pip或python,但都没有帮助。pip-7.1.2更新1发现我对virtualenv有同样的问题。 最佳答案 我遇到了完全相同的问题。原因-就我而言-是我的防病毒程序Avast。它阻止了pip。我一停用它。有用。我

python - 如何使用conda或pip在Anaconda中安装pytorch?

我正在尝试在Anaconda中安装pytorch,以便在Windows中使用Python3.5。按照pytorch.org中的说明进行操作我在Anaconda中引入了如下代码:pip3installtorchtorchvision但是报错如下:Command"pythonsetup.pyegg_info"failedwitherrorcode1inC:\Users\sluis\AppData\Local\Temp\pip-install-qmrvz7b9\torch\通过在网络上搜索,我发现这可能是因为setuptools已过时,但我检查并更新了它。我也试过:condainstall-

python - pip3 导入错误 : cannot import name 'IncompleteRead'

通过pip3安装模块时遇到问题,尝试了2014年12月投票最高的线程中的几个建议,但仍然得到以下信息:sudopip3installsend2trashTraceback(mostrecentcalllast):File"/usr/bin/pip3",line9,inload_entry_point('pip==1.5.6','console_scripts','pip3')()File"/usr/lib/python3/dist-packages/pkg_resources/__init__.py",line558,inload_entry_pointreturnget_distri