我用setup.py
编写了自己的包,在我的setup.py文件中,我有:
install_requires=[
"numpy",
"scipy",
"matplotlib",
"python-pptx",
"xlrd",
"xlwt",
"pillow",
],
这些软件包已经安装,我想安装到我的anaconda root env
,所以如果我运行pip install -e .
,pip
找不到已安装的所有必需软件包,它会尝试再次安装所有这些:
Collecting numpy (from elc-pytools==0.1.0)
Using cached numpy-1.11.0-cp35-none-win_amd64.whl
但如果我运行python setup install
,它会找到已安装的软件包:
Using c:\anaconda3\lib\site-packages
Searching for numpy==1.11.0
Best match: numpy 1.11.0
Adding numpy 1.11.0 to easy-install.pth file
为什么?有没有办法告诉pip
已经安装了所需的软件包?