pip

Pip install from requirements file is failing, but installing one by one works

孤街醉人 提交于 2021-01-27 13:41:16
问题 I am trying to install a bunch of python dependencies using a requirements.txt file with the following command: pip install -r requirements.txt The requirements.txt file has the following packages: pep8 selenium paramiko soappy nose wmi mock python-keystoneclient python-novaclient python-cinderclient python-swiftclient python-glanceclient python-heatclient python-neutronclient But when running the pip install command I am getting this error: Downloading/unpacking PrettyTable>=0.7,<0.8 (from

How to upload package to PyPi with Two Factor enabled?

血红的双手。 提交于 2021-01-27 12:04:46
问题 I would like to upload a package to Pypi so I have created an account and tried to follow the manual. Account: It looks I cannot create projects from pypi.org directly: I installed twine and I did $ python3 -m twine upload dist/* This time I have the following error: HTTPError: 403 Client Error: Invalid or non-existent authentication information. for url: https://upload.pypi.org/legacy/ Perhaps this is related to my Two Factor Authentication. I am also curious about he legacy word used there.

curl for get-pip.py does not work: Syntax Error

纵饮孤独 提交于 2021-01-27 12:01:49
问题 When I try to run: [root@pex appliance_ui]# curl https://bootstrap.pypa.io./get-pip.py | python It returns: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1603k 100 1603k 0 0 7006k 0 --:--:-- --:--:-- --:--:-- 13.2M Traceback (most recent call last): File "<stdin>", line 20649, in <module> File "<stdin>", line 197, in main File "<stdin>", line 82, in bootstrap File "/tmp/tmpH39pcu/pip.zip/pip/_internal/__init__.py", line 42, in <module>

curl for get-pip.py does not work: Syntax Error

元气小坏坏 提交于 2021-01-27 12:00:01
问题 When I try to run: [root@pex appliance_ui]# curl https://bootstrap.pypa.io./get-pip.py | python It returns: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1603k 100 1603k 0 0 7006k 0 --:--:-- --:--:-- --:--:-- 13.2M Traceback (most recent call last): File "<stdin>", line 20649, in <module> File "<stdin>", line 197, in main File "<stdin>", line 82, in bootstrap File "/tmp/tmpH39pcu/pip.zip/pip/_internal/__init__.py", line 42, in <module>

How to upload package to PyPi with Two Factor enabled?

泄露秘密 提交于 2021-01-27 11:58:10
问题 I would like to upload a package to Pypi so I have created an account and tried to follow the manual. Account: It looks I cannot create projects from pypi.org directly: I installed twine and I did $ python3 -m twine upload dist/* This time I have the following error: HTTPError: 403 Client Error: Invalid or non-existent authentication information. for url: https://upload.pypi.org/legacy/ Perhaps this is related to my Two Factor Authentication. I am also curious about he legacy word used there.

. + tab AutoComplete not working in Jupyter Notebook

天涯浪子 提交于 2021-01-27 11:52:58
问题 So out of nowhere I seemingly cannot autocomplete methods using . + Tab in Jupyter Notebook. Currently running Jupyter 6.0.1 I've tried the following with no success: $ sudo easy_install readline conda install -c anaconda jedi & updated conda and the following pip install pyreadline thanks! 来源: https://stackoverflow.com/questions/60066265/tab-autocomplete-not-working-in-jupyter-notebook

Upgrading `pip` removes other python's pips

ε祈祈猫儿з 提交于 2021-01-27 07:25:46
问题 On a CentOS 7 system, I have multiple versions of Python installed, each with their own version of pip : # head -n1 /usr/local/bin/pip3.* ==> /usr/local/bin/pip3.6 <== #!/usr/bin/python3 ==> /usr/local/bin/pip3.7 <== #!/usr/local/bin/python3.7 ==> /usr/local/bin/pip3.8 <== #!/usr/local/bin/python3.8 When I ask pip3.8 to upgrade itself, it removes the installed pip3.7 : # pip3.8 install --upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/54/0c

Upgrading `pip` removes other python's pips

ぃ、小莉子 提交于 2021-01-27 07:24:00
问题 On a CentOS 7 system, I have multiple versions of Python installed, each with their own version of pip : # head -n1 /usr/local/bin/pip3.* ==> /usr/local/bin/pip3.6 <== #!/usr/bin/python3 ==> /usr/local/bin/pip3.7 <== #!/usr/local/bin/python3.7 ==> /usr/local/bin/pip3.8 <== #!/usr/local/bin/python3.8 When I ask pip3.8 to upgrade itself, it removes the installed pip3.7 : # pip3.8 install --upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/54/0c

Why some packages are upgradable in Pip, not in Conda? [duplicate]

点点圈 提交于 2021-01-27 07:07:28
问题 This question already has answers here : What is the difference between pip and conda? (12 answers) Closed 3 years ago . I installed Anaconda under Windows 10. Everything is working fine. I also ran conda upgrade --all in a command prompt. However, I noticed that when I type this in a command prompt: pip list -o I get (among other things) astroid (1.4.7) - Latest: 1.4.8 [wheel] This means package astroid is upgradable under pip. However, when I go to the Anaconda Navigator and look at the

How to fix ImportError: No module named cryptography?

孤者浪人 提交于 2021-01-27 05:38:34
问题 I want to auto renew certificate via certbot, but not working, got error "ImportError: No module named cryptography" # ./certbot-auto --dry-run Error: couldn't get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt: Traceback (most recent call last): File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 7, in from certbot.main import main File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/main.py", line 10, in import josepy as jose File "/opt/eff