pip install vprof fails

别说谁变了你拦得住时间么 提交于 2020-01-06 06:50:11

问题


I'm trying to install the package vprof from PyCharm but I'm getting the error:

Collecting vprof

Using cached https://files.pythonhosted.org/packages/0b/2b/5b690c8bd73231216c82180b7b162cf433dd98d6212b19a7374c5cf09622/vprof-0.36.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "C:\Users\xxx\AppData\Local\Temp\pycharm-packaging\vprof\setup.py", line 12, in from pip.download import PipSession ImportError: No module named download


Command "python setup.py egg_info" failed with error code 1 in C:\Users\xxx\AppData\Local\Temp\pycharm-packaging\vprof\

Can someone tell me what I'm doing wrong? Other packages like Theano, NLTK or astor are getting installed without a problem. I'm using pip version 10.0.1 and python 2.7 and PyCharm 2018.1.2.

Searching for the error "No module named download" didn't get me any solutions.


回答1:


vprof imports pip which is very much discouraged. And it uses the old API from pip before version 10. You have to downgrade pip back to version 9:

pip install -U 'pip>=9,<10'

Also I recommend to report the bug at the vprof issue tracker.




回答2:


python -m pip install -U 'pip>=9,<10'
pip install vprof

did the job for me



来源:https://stackoverflow.com/questions/50113927/pip-install-vprof-fails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!