Pip Install hangs

2019-04-26 17:35发布

I currently have Python 3.5 on my Windows machine. I'm trying to install a Python package using the command "pip install" but as soon as I hit enter nothing happens. The action hangs for such a long time and when I try to exit the command line, it freezes. How do I get pip install to work?

2条回答
Summer. ? 凉城
2楼-- · 2019-04-26 18:15

Try using pip programmatically like shown below.

import pip

pip.main(['install', 'the_package_you_want_installed'])
查看更多
唯我独甜
3楼-- · 2019-04-26 18:32

@JBernardo 's comment worked for me. Thanks!

python -m pip install some_package_you_want
查看更多
登录 后发表回答