pip

Python 3.7: Applying the proxy to all parts of pip installation, failing to maintain the proxy variable

雨燕双飞 提交于 2021-02-06 12:58:06
问题 I have the below problem, I am using command pip install pyinstaller --proxy=http://webdefence.global.blackspider.com:80 --trusted-host=pypi.python.org The problem I have is the proxy variable is not maintained through the installation process. It no longers has the proxy address when trying to install setuptools. I have tried using HTTP_PROXY and HTTPS_PROXY in my environment variables with no luck. Are there any other ways to set a proxy which will maintain through the pip install? I have

pip uninstall: “No files were found to uninstall.”

丶灬走出姿态 提交于 2021-02-06 10:13:01
问题 I have created a python module, call it 'foo_bar'. I can install it and I can upgrade it, but I cannot uninstall it. I build my module using bdist_wheel : $ python3 setup.py bdist_wheel And I install and upgrade it as follows: $ python3 -m pip --timeout 60 install --upgrade dist/foo_bar-1.4.3-py3-none-any.whl It is listed within Python 3.4 framework directory: ls -al /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ drwxr-xr-x 12 samwise admin 408 Jun 21 02:50 foo

pip uninstall: “No files were found to uninstall.”

拥有回忆 提交于 2021-02-06 10:12:53
问题 I have created a python module, call it 'foo_bar'. I can install it and I can upgrade it, but I cannot uninstall it. I build my module using bdist_wheel : $ python3 setup.py bdist_wheel And I install and upgrade it as follows: $ python3 -m pip --timeout 60 install --upgrade dist/foo_bar-1.4.3-py3-none-any.whl It is listed within Python 3.4 framework directory: ls -al /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ drwxr-xr-x 12 samwise admin 408 Jun 21 02:50 foo

Installing Python Package from Github Using PIP

为君一笑 提交于 2021-02-06 10:11:55
问题 I've seen it documented that you can install a Github hosting Python package using pip via: sudo pip install -e git+git://github.com/myuser/myproject.git#egg=myproject However, this appears to install the package to the current working directory, which is almost never where is should be. How do you instruct pip to install it into the standard Python package directory (e.g. on Ubuntu this is /usr/local/lib/python2.6/dist-packages)? 回答1: The -e flag tells pip to install it as "editable", i.e.

Installing Python Package from Github Using PIP

点点圈 提交于 2021-02-06 10:10:07
问题 I've seen it documented that you can install a Github hosting Python package using pip via: sudo pip install -e git+git://github.com/myuser/myproject.git#egg=myproject However, this appears to install the package to the current working directory, which is almost never where is should be. How do you instruct pip to install it into the standard Python package directory (e.g. on Ubuntu this is /usr/local/lib/python2.6/dist-packages)? 回答1: The -e flag tells pip to install it as "editable", i.e.

Python can't find the file pip.conf

浪子不回头ぞ 提交于 2021-02-06 09:58:49
问题 I can't find the file pip.conf in the path ~/.config/pip/pip.conf or the path ~/pip/pip.conf . My version of pip is 8.1.2 回答1: As stated in the documentation, the default locations for Linux are: per-user: $HOME/.config/pip/pip.conf global: /etc/pip.conf 回答2: Before creating pip.conf I would rather check with the following command before creating one find . -name 'pip.conf' For me it was under home directory as ./Library/Application Support/pip/pip.conf 回答3: https://pip.pypa.io/en/stable/user

why is pip so SLOW to download? (how to troubleshoot?)

这一生的挚爱 提交于 2021-02-05 20:12:12
问题 I can wget e.g. python coverage and pip install the package locally quickly and without any problem, but pip install coverage takes forever . Using pip 1.3.1 in a virtual env on Ubuntu 12.04. Any idea what could be the hold-up? 回答1: As Donald Stufft answered in pip issue 864, it happens because pip crawls a lot of pages looking for package sdists, and this behavior was inherited from easy_install . Some packages do not work if you remove that feature, and some guys started a new PEP to remove

why is pip so SLOW to download? (how to troubleshoot?)

爷,独闯天下 提交于 2021-02-05 20:10:39
问题 I can wget e.g. python coverage and pip install the package locally quickly and without any problem, but pip install coverage takes forever . Using pip 1.3.1 in a virtual env on Ubuntu 12.04. Any idea what could be the hold-up? 回答1: As Donald Stufft answered in pip issue 864, it happens because pip crawls a lot of pages looking for package sdists, and this behavior was inherited from easy_install . Some packages do not work if you remove that feature, and some guys started a new PEP to remove

why is pip so SLOW to download? (how to troubleshoot?)

对着背影说爱祢 提交于 2021-02-05 20:09:52
问题 I can wget e.g. python coverage and pip install the package locally quickly and without any problem, but pip install coverage takes forever . Using pip 1.3.1 in a virtual env on Ubuntu 12.04. Any idea what could be the hold-up? 回答1: As Donald Stufft answered in pip issue 864, it happens because pip crawls a lot of pages looking for package sdists, and this behavior was inherited from easy_install . Some packages do not work if you remove that feature, and some guys started a new PEP to remove

How to start Spyder IDE on Windows

一曲冷凌霜 提交于 2021-02-05 18:01:08
问题 I downloaded spyder using the pip install spyder in my windows 10 32-bit operating system, but i dont see any desktop icons or exe files to start running the IDE. I downloaded spyder 3, any my python is 3.6. I even tried creating a shortcut of spyder.exe from the Python3.6/Scripts folder, but it won't open. 回答1: The name of the spyder executable was changed to spyder3.exe in python version 3. I install pyqt5 and spyder via pip and was able to launch spyder3. I first tried without installing