Ubuntu16.04+anaconda+python2.7和3.5切换

本文介绍了在Ubuntu16.04系统中,如何使用anaconda在Python2.7和3.5之间切换,并解决skimage模块缺失的问题。通过conda安装scikit-image和opencv,同时提供了在win10系统下创建Python3.7环境的步骤。
摘要由CSDN通过智能技术生成

1.

walden@walden-All-Series:~$ conda update conda
Solving environment: done

# All requested packages already installed.

walden@walden-All-Series:~$ conda create --name py3 python=3.5
Solving environment: done

## Package Plan ##

  environment location: /home/walden/anaconda2/envs/py3

  added / updated specs: 
    - python=3.5


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    wheel-0.31.1               |           py35_0          63 KB
    pip-10.0.1                 |           py35_0         1.8 MB
    setuptools-39.2.0          |           py35_0         565 KB
    certifi-2018.4.16          |           py35_0         143 KB
    python-3.5.5               |       hc3d631a_4        28.3 MB
    sqlite-3.24.0              |       h84994c4_0         1.8 MB
    ------------------------------------------------------------
                                           Total:        32.6 MB

The following NEW packages will be INSTALLED:

    ca-certificates: 2018.03.07-0           
    certifi:         2018.4.16-py35_0       
    libedit:         3.1.20170329-h6b74fdf_2
    libffi:          3.2.1-hd88cf55_4       
    libgcc-ng:       7.2.0-hdf63c60_3       
    libstdcxx-ng:    7.2.0-hdf63c60_3       
    ncurses:         6.1-hf484d3e_0         
    openssl:         1.0.2o-h20670df_0      
    pip:             10.0.1-py35_0          
    python:          3.5.5-hc3d631a_4       
    readline:        7.0-ha6073c6_4         
    setuptools:      39.2.0-py35_0          
    sqlite:          3.24.0-h84994c4_0      
    tk:              8.6.7-hc745277_3       
    wheel:           0.31.1-py35_0          
    xz:              5.2.4-h14c3975_4       
    zlib:            1.2.11-ha838bed_2      

Proceed ([y]/n)? y


Downloading and Extracting Packages
wheel-0.31.1         |   63 KB | ####################################### | 100% 
pip-10.0.1           |  1.8 MB | ####################################### | 100% 
setuptools-39.2.0    |  565 KB | ####################################### | 100% 
certifi-2018.4.16    |  143 KB | ####################################### | 100% 
python-3.5.5         | 28.3 MB | ####################################### | 100% 
sqlite-3.24.0        |  1.8 MB | ####################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use:
# > source activate py3
#
# To deactivate an active environment, use:
# > source deactivate
#

walden@walden-All-Series:~$ 

2.

# 删除一个已有的环境
conda remove --name py3 --all

3.

ImportError: No module named 'skimage'

conda install scikit-image

4.安装opencv

conda install -c menpo opencv

 

5.win10下

conda create --name py37 python=3.7

#
# To activate this environment, use
#
#     $ conda activate py37
#
# To deactivate an active environment, use
#
#     $ conda deactivate

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值