草庐IT

pip-xcfgd

全部标签

python - 如何修复卡在安装 sqlalchemy 上的 pip

在Windows下的Python2.7.11中,我将sqlalchemy安装到虚拟环境中。现在,当我尝试通过卸载它时pipuninstallsqlalchemypip在列出以下行时挂起:...c:\venv\lib\site-packages\sqlalchemy\util\langhelpers.pyc:\venv\lib\site-packages\sqlalchemy\util\langhelpers.pycc:\venv\lib\site-packages\sqlalchemy\util\queue.pyc:\venv\lib\site-packages\sqlalchemy\

python - 在 Ubuntu 上使用 pip 安装 NumPy 失败

当我尝试时:$sudopipinstallnumpy在我的Ubuntu12.04服务器上,我得到:------------------------------------------------------------/usr/local/bin/piprunonTueDec1018:25:542013Downloading/unpackingnumpyGettingpagehttps://pypi.python.org/simple/numpy/URLstosearchforversionsfornumpy:*https://pypi.python.org/simple/numpy/

python - 'io.h' : No such file or directory during "pip install netifaces"

我尝试通过以下方式在Python3.6.2中安装netifaces:pipinstallnetifaces但是当我在cmd中运行它时,我得到了这个错误:c:\users\seyed_vahid\appdata\local\programs\python\python36\include\pyconfig.h(59):fatalerrorC1083:Cannotopenincludefile:'io.h':Nosuchfileordirectoryerror:command'C:\ProgramFiles(x86)\MicrosoftVisualStudio14.0\VC\bin\cl.

python - `pip freeze` 包安装中断

我正在使用dependency_links安装一个包。它似乎可以正常安装包,但会破坏pipfreeze功能(这可能意味着存在更深层次的安装问题。)我希望能够从自定义服务器下载包,而无需在运行setup.py之外进行任何设置。这是我的setup.py文件:fromsetuptoolsimportsetupsetup(name='package',version='0.1.0',packages=['foo','bar'],long_description='',url='https://github.com/myrepo',install_requires=['numpy>=1.9.2'

python - 使用 pip 和 virtualenv 的 scipy 安装以错误和 g++ 退出状态 4 结束

我在AWS(亚马逊网络服务)上使用微型实例并安装在python3.3.2虚拟环境中。我试过:pip安装scipypipinstall-egit+https://github.com/scipy/scipy.git#egg=scipy他们结束于:Pleasesubmitafullbugreport,withpreprocessedsourceifappropriate.Seeforinstructions.Infileincludedfrom/home/ubuntu/rose/lib/python3.3/site-packages/numpy/core/include/numpy/nda

python - Pip 安装 - 下载的 whl 文件会保留并占用磁盘空间吗?

在python中使用pip安装包时,它会下载并安装一个whl文件,例如pyqt5的以下文件:https://files.pythonhosted.org/packages/d4/bf/d884da8e2f7096d201c891d515eb6813a8e85df5eb6f5e12e867bf1d831c/PyQt5-5.11.3-5.11.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl安装后,此文件是否保留在光盘上并占用空间?如果是这样,是否可以将其删除以释放磁盘空间?此外,文档中的任何地方是否有与此相关的链接?

python - 在setup.py或pip需求文件中,如何控制安装包依赖的顺序?

我有一个Python包,其setup.py具有通过通常方式在install_requires=[...]中声明的依赖项。那里的一个软件包scikits.timeseries有一个setup.py期望已经安装了numpy,因此,我想通过某种方式先安装numpy。对于这种情况和一般情况,是否可以控制依赖安装的顺序?如何?目前setup.py提取依赖项的顺序(如arginstall_requires中所列)似乎实际上是随机的。此外,在setup.pysetup(...)中,我尝试使用arg:extras_require={'scikits.timeseries':['numpy']}...没

python - pip install -r requirements.txt 来自 puppet ?

我有一个pip样式的requirements.txt文件,用于跟踪我的python依赖项,我正在将我的开发环境转移到vagrant+puppet。到目前为止,我一直在使用puppet中内置的pip提供程序来安装单个软件包,如下所示:package{["django","nose"]:ensure=>present,provider=>pip}是否可以改为传入我的requirements.txt并让puppet在该文件更改时使包保持最新? 最佳答案 是的,这是可能的。不要定义包资源,而是定义一个“exec”资源,它将requireme

python - 为什么全新安装后会有 pip 和 conda 包?

全部Windows10,64bit,d/lAnaconda2.5.0withPython3,64bit并安装全新安装后,我输入condalist,然后,在包中,我看到重复如jupyter1.0.0py35_1jupyter-client4.1.1jupyter-console4.1.0jupyter-core4.0.6jupyter_client4.1.1py35_0jupyter_console4.1.0py35_0jupyter_core4.0.6py35_0这正常吗,为什么有些包(不是全部,只是少数)有在conda和pip中重复(不完全是,-vs_)?如果我执行pipuninst

python - 升级 pip : UnicodeDecodeError: 'utf-8' codec can't decode byte 时出错

我刚刚在Windows10上安装了python,我正在尝试升级pip。我的windows用户名有希伯来语字符...当我尝试运行时:python-mpipinstall--upgradepip我收到这个错误:CollectingpipUsingcachedpip-8.0.2-py2.py3-none-any.whlInstallingcollectedpackages:pipFoundexistinginstallation:pip7.1.2Exception:Traceback(mostrecentcalllast):File"C:\Users\עדי\AppData\Local\Pr