msys2:安装 python 包失败
msys2: Installing a python package fails
我 运行 msys2 通过 PyCharm 在 MS-Windows.
我尝试运行这个命令:
C:\msys32\usr\bin\python3.exe -m pip install -e git+https://source.example.com/repos/myapp#egg=myapp
我得到这个输出:
15 [main] python3 5640 child_info_fork::abort: address space needed by '_bz2.cpython-36m.dll' (0x5A0000) is already occupied
Obtaining myapp from git+https://source.example.com/repos/myapp#egg=myapp
Cloning https://source.example.com/repos/myapp to ./src/myapp
9 [main] python3 7008 child_info_fork::abort: address space needed by '_bz2.cpython-36m.dll' (0x5A0000) is already occupied
Error [Errno 11] Resource temporarily unavailable while executing command git clone -q https://source.example.com/repos/myapp "/c/Users/tguettler/PycharmProjects/myproject/src/myapp"
Could not install packages due to an EnvironmentError: [Errno 11] Resource temporarily unavailable
Process finished with exit code 1
有什么问题吗?
通过网络浏览器访问 URL 工作正常。
大致相同的情况发生,如果我运行这个命令:
$ pip install cx_freeze
16 [main] python3 5748 child_info_fork::abort: address space needed by '_bz2.cpython-36m.dll' (0x390000) is already occupied
Collecting cx_freeze
Using cached https://files.pythonhosted.org/packages/5f/16/eab51d6571dfec2554248cb027c51babd04d97f594ab6359e0707361297d/cx_Freeze-5.1.1.tar.gz
10 [main] python3 2652 child_info_fork::abort: address space needed by '_bz2.cpython-36m.dll' (0x390000) is already occupied
Error [Errno 11] Resource temporarily unavailable while executing command python setup.py egg_info
Could not install packages due to an EnvironmentError: [Errno 11] Resource temporarily unavailable
当您 运行ning pip 时,您只需指定包名称,而不是包所在的 URL。例如
pip install package-name
此外,大多数人 运行 直接从命令行而不是通过 PyCharm
我想我是这样解决的:
c:\msys32\usr\bin\dash c:\msys32\usr\bin\rebaseall -v
以上行是在 ms-dos 终端中执行的。
现在看来可以了。
我 运行 msys2 通过 PyCharm 在 MS-Windows.
我尝试运行这个命令:
C:\msys32\usr\bin\python3.exe -m pip install -e git+https://source.example.com/repos/myapp#egg=myapp
我得到这个输出:
15 [main] python3 5640 child_info_fork::abort: address space needed by '_bz2.cpython-36m.dll' (0x5A0000) is already occupied
Obtaining myapp from git+https://source.example.com/repos/myapp#egg=myapp
Cloning https://source.example.com/repos/myapp to ./src/myapp
9 [main] python3 7008 child_info_fork::abort: address space needed by '_bz2.cpython-36m.dll' (0x5A0000) is already occupied
Error [Errno 11] Resource temporarily unavailable while executing command git clone -q https://source.example.com/repos/myapp "/c/Users/tguettler/PycharmProjects/myproject/src/myapp"
Could not install packages due to an EnvironmentError: [Errno 11] Resource temporarily unavailable
Process finished with exit code 1
有什么问题吗?
通过网络浏览器访问 URL 工作正常。
大致相同的情况发生,如果我运行这个命令:
$ pip install cx_freeze
16 [main] python3 5748 child_info_fork::abort: address space needed by '_bz2.cpython-36m.dll' (0x390000) is already occupied
Collecting cx_freeze
Using cached https://files.pythonhosted.org/packages/5f/16/eab51d6571dfec2554248cb027c51babd04d97f594ab6359e0707361297d/cx_Freeze-5.1.1.tar.gz
10 [main] python3 2652 child_info_fork::abort: address space needed by '_bz2.cpython-36m.dll' (0x390000) is already occupied
Error [Errno 11] Resource temporarily unavailable while executing command python setup.py egg_info
Could not install packages due to an EnvironmentError: [Errno 11] Resource temporarily unavailable
当您 运行ning pip 时,您只需指定包名称,而不是包所在的 URL。例如
pip install package-name
此外,大多数人 运行 直接从命令行而不是通过 PyCharm
我想我是这样解决的:
c:\msys32\usr\bin\dash c:\msys32\usr\bin\rebaseall -v
以上行是在 ms-dos 终端中执行的。
现在看来可以了。