anaconda安装wxpython,Anaconda导入现有的virtualenv

I want to import an existing virtual env, which I created using anaconda into another anaconda installation on a different distribution.

I've tried creating a new one using the following command in the directory of the venv copied from the other distribution:

conda create -p . python=3.4

That results in:

Error: prefix already exists: /home/xiaolong/development/blog

But anaconda does not know that, when I ask it to list all existing venvs:

conda info --envs

This results in:

# conda environments:

#

firstenv /home/xiaolong/development/anaconda3/envs/firstenv

gtkplus-tool /home/xiaolong/development/anaconda3/envs/gtkplus-tool

testenv /home/xiaolong/development/anaconda3/envs/testenv

tkxld /home/xiaolong/development/anaconda3/envs/tkxld

wxpython-phoenix-tutorial /home/xiaolong/development/anaconda3/envs/wxpython-phoenix-tutorial

root * /home/xiaolong/development/anaconda3

This list is missing my copied venv. How do I add it to that list, so that I can then use source activate blog for example?

解决方案

-p . cannot work because the directory must not exist already.

You probably want your env in /home/xiaolong/development/blog/env or something similar. So just do conda create -p ./env python=3.4.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值