pip packages not included in “conda env export”

前端 未结 4 498
太阳男子
太阳男子 2021-02-05 06:36

My python project runs on a conda virtual environment. I install packages on the environment with conda install whenever that package is available for installing th

4条回答
  •  孤街浪徒
    2021-02-05 07:04

    I was able to solve this problem just by running this in a command window with admin privileges:

    activate 
    conda update pip
    

    After that, exports of the available packages on my environment contain again both the packages installed with conda and those with pip.

    I suspect I may have caused this package export problem because I had followed the instruction that pip gave earlier on, when I was executing a package install:

    "You are using pip version 9.0.3, however version 10.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' > command."

    So updating with python -m pip install --upgrade pip broke my package exports, but conda update pip fixed it.

提交回复
热议问题