Anaconda3 导入flow环境报错

在Ubuntu20.04上使用Anaconda3安装Flow和Sumo时遇到问题,包括环境配置错误、pip源问题以及redis版本不兼容。通过修改`environment.yml`文件添加pip,更换pip源到阿里云,以及调整redis版本限制,成功解决了所有问题。
摘要由CSDN通过智能技术生成

Anaconda3 导入flow环境报错

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.

解决:

  1. 打开flow目录下的environment.yml
  2. 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
 
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值