我在conda环境下尝试使用pip安装一个包。
我有一个名为
但是当我运行
然而,在我的bash控制台中只需键入
编辑:我的第一个想法是更新conda。我现在的版本是4.3.23,尝试使用
environment.yml
的文件,内容如下:name: test-env
dependencies:
- pip:
- "git+https://github.com/choldgraf/download"
但是当我运行
conda env update --file environment.yml
时,会得到以下结果:Using Anaconda API: https://api.anaconda.org
Fetching package metadata .............
Solving package specifications: An unexpected error has occurred.
Please consider posting the following information to the
conda GitHub issue tracker at:
# Here some configuration that I omit
Traceback (most recent call last):
File "/home/mathurin/anaconda3/lib/python3.5/site-packages/conda/exceptions.py", line 634, in conda_exception_handler
return_value = func(*args, **kwargs)
File "/home/mathurin/anaconda3/lib/python3.5/site-packages/conda_env/cli/main_update.py", line 106, in execute
installer.install(prefix, specs, args, env, prune=args.prune)
File "/home/mathurin/anaconda3/lib/python3.5/site-packages/conda_env/installers/pip.py", line 8, in install
pip_cmd = pip_args(prefix) + ['install', ] + specs
TypeError: unsupported operand type(s) for +: 'NoneType' and 'list'
然而,在我的bash控制台中只需键入
pip install git+https://github.com/choldgraf/download
就可以正常工作。我做错了什么吗?编辑:我的第一个想法是更新conda。我现在的版本是4.3.23,尝试使用
conda update conda
无法更新。# All requested packages already installed.
# packages in environment at ~/anaconda3:
#
conda 4.3.23 py35_0 conda-forge
conda
版本是什么? - darthbithconda-forge
安装的。如果你想更新它,可以输入conda install conda=4.3.25
看看是否解决问题,但可能不行... - darthbith