pip

Does PIP/Python support multiple versions of the same package?

烈酒焚心 提交于 2021-02-07 08:46:16
问题 Let's say I have a package foo , and foo packages up binary shared objects that I use in multiple Python scripts. Foo v1 (shared objects) Bar v1 (requires Foo v1) Baz v1 (requires Foo v1) Now I want to push out a new breaking update to Foo. Foo v2 (shared objects) Bar v2 (requires Foo v2) Foo v1 (shared objects) Bar v1 (requires Foo v1) Baz v1 (requires Foo v1) Can old-dependencies with different major versions in semvar be distributed over PyPI? If so, how? 回答1: Pypi can and will track

How can I install Python libraries using Jython Standalone in Java?

江枫思渺然 提交于 2021-02-07 07:26:24
问题 I am trying to install Python libraries using a Jython Standalone jar in Java. The code I have seems to install PIP 7.1.2 in a folder next to the standalone jar, but once I try to use PIP to upgrade itself, it fails with a ZipImportError. The error message seems to complain about not being able to open the PIP wheel file, but the log seems to show it being able to open it a few times already. import org.python.util.PythonInterpreter; public class PipInstaller{ public void installPip(){

urllib.request module fails to install in my system

ぃ、小莉子 提交于 2021-02-07 05:13:13
问题 Tried installing urllib.request module using below command sudo pip install urllib.request but it returned Downloading/unpacking urllib.request Could not find any downloads that satisfy the requirement urllib.request Cleaning up... No distributions at all found for urllib.request Storing debug log for failure in /home/mounarajan/.pip/pip.log How can I install this module? 回答1: urllib.request is only available in python3 branch. See the following post for more info. urllib.request in Python 2

urllib.request module fails to install in my system

匆匆过客 提交于 2021-02-07 05:13:07
问题 Tried installing urllib.request module using below command sudo pip install urllib.request but it returned Downloading/unpacking urllib.request Could not find any downloads that satisfy the requirement urllib.request Cleaning up... No distributions at all found for urllib.request Storing debug log for failure in /home/mounarajan/.pip/pip.log How can I install this module? 回答1: urllib.request is only available in python3 branch. See the following post for more info. urllib.request in Python 2

解决 pip 安装opendr包 卡住的问题

强颜欢笑 提交于 2021-02-07 00:15:49
使用豆瓣的源(已经确认过了该源中有opendr包),pip安装opendr,结果卡在了下载完成的位置,什么提示也没有。(如下图) 既然安装包已经下载下来了又安装不上,则应该是安装代码中有什么问题,只不过错误提示没有打印出来。 于是到官网把pip安装包的代码下载下来 解压,看到安装包中是这样的。 安装包解压之后可以直接用吗?好像不可以: 于是执行setup.py文件,看可不可以手动安装,终于发现报错提示了: 原来是安装包执行过程中又自动去下载了一个下载不下来的包导致报错。 于是将OSMesa.Linux.x86_64.zip手动下载下来,并根据setup.py中的意思,将它放到contexts文件夹下。 重新执行,原来的错误没有了,但又有新的错误,提示要输入命令选项 根据错误提示,执行python setup.py --help查看一下setup.py的帮助: 发现手动安装应当先执行python setup.py build命令 然后再执行python setup.py install 命令。 则执行上述两条命令,编译 安装。 貌似安装成功了。试一下: 成功! 来源: oschina 链接: https://my.oschina.net/u/4305496/blog/3988903

Pip install - Python 2.7 - Windows 7

北城余情 提交于 2021-02-06 15:31:48
问题 I download the get-pip.py from https://pip.pypa.io/en/stable/installing/ . Then i changed path in: system-variable environment into : C:\Python27\ArcGIS10.3\Lib\site-packages after that i tried to run in from the cmd and this is the result: 回答1: For New versions Older versions of python may not have pip installed and get-pip will throw errors. Please update your python (2.7.15 as of Aug 12, 2018). All current versions have an option to install pip and add it to the path. Steps: Open

ImportError: No module named 'Cython'

给你一囗甜甜゛ 提交于 2021-02-06 14:59:18
问题 I'm trying do from Cython.Build import cythonize and I get the message ImportError: No module named 'Cython' , but I instaled the Cython with the comand pip install Cython . What's wrong? Python 3.5 Cython 0.25.2 Windows 8 回答1: just directly install from pypi: pip install Cython https://pypi.org/project/Cython/ 回答2: Use Pip3 command: pip3 install --upgrade cython 回答3: I reinstalled the Cython with conda and install the Microsoft Visual C++ Build Tools and it works fine. 回答4: You can download

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

♀尐吖头ヾ 提交于 2021-02-06 13:02:12
问题 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

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

◇◆丶佛笑我妖孽 提交于 2021-02-06 12:58:08
问题 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