ubuntu20.04+Anaconda3 安装Flow和Sumo时出错
问题一
根据官方文档(https://flow.readthedocs.io/en/latest/flow_setup.html#installing-flow-and-sumo)直接在终端输入
conda env create -f environment.yml
出现
Warning: you have pip-installed dependencies in your environment file, but you do
not list pip itself as one of your conda dependencies. Conda may not use the
correct pip to install your packages, and they may end up in the wrong place.
Please add an explicit pip dependency. I'm adding one for you, but still nagging
you.
解决:
- 打开flow目录下的environment.yml ;
- dependencies: - python==3.7.3 后加入- pip ,这一步保证环境中有pip包;
问题二
重复
conda env create -f environment.yml
出现
CondaEnvException: Pip failed
解决:
终端输入
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
修改pip源为阿里云
问题三
重复导入yml文件,出现
The conflict is caused by:
The user requested redis~=2.10.6