How to install python packages not in anaconda environment with anaconda

Recently, I want to use python's word segmentation package, but use

conda install jieba

The command prompts that the package was not found.

But if you use the traditional pip install, it will be confused with the pip command in anaconda.

solution:

1. Change pip.exe and pip-script.py to condapip.exe and condapip-script.py in D:\ProgramData\Anaconda3\Scripts (to distinguish it from pip in the system python environment).

2. Use it directly in Anaconda Prompt

condapip install jieba

Or download the package and use it

condapip install D:\python\xxx.whl

Or if you want to use the system's Python environment, use it directly

pip install jieba



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325969716&siteId=291194637