msys2:安装python软件包失败

时间:2018-08-29 12:13:24

标签: python windows msys2

我在MS-Windows上通过PyCharm运行msys2。

我尝试运行此命令:

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

怎么了?

通过Web浏览器访问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

2 个答案:

答案 0 :(得分:1)

我想我是这样解决的:

c:\msys32\usr\bin\dash c:\msys32\usr\bin\rebaseall -v

在ms-dos终端中执行了上一行。

现在看来可行。

答案 1 :(得分:0)

运行pip时,只需指定软件包名称,而不是软件包所在的URL。例如

pip install package-name

而且,大多数人直接从命令行运行它,而不是通过PyCharm