How to install PyPi packages using anaconda conda command

后端 未结 3 508
你的背包
你的背包 2020-12-04 10:11

When using the Anacoda Python distribution, what is the best way to install a PyPi package that isn\'t available directly through Anaconda? For now I\'m using:



        
3条回答
  •  醉话见心
    2020-12-04 10:52

    If you want to build conda packages for PyPI packages, the recommended way is to use conda skeleton pypi package and use conda build package on the recipe that it creates. To install the package, use conda install --use-local package (here and elsewhere, package is the name of the PyPI package you wish to install).

    You will need to update the recipe each time the package is updated.

    You can also use pip to install these packages. There are two disadvantages: firstly, these packages won't be managed by conda at all. Secondly, these packages will not work if your default python version is different from the python version you are using in conda.

提交回复
热议问题