Windows + python3.5 +QuTip安装

Windows + python3.5 +QuTip安装

建议经过Anaconda或Miniconda来安装;

注意,全部的路径不要包含空格和中文html

1.安装Anaconda,建议安装最新版本的(能够不安装在c盘)
2.有须要的也能够安装一下Conda,不建议安装最高版本,我这里安装的是Conda9.0
历史版本下载地方
https://developer.nvidia.com/cuda-90-download-archive?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal
3.打开Anaconda Prompt 在里面输入conda search --full-name python查看有哪些能够安装的Python版本
4. 建立qutip环境,在Anaconda Prompt命令窗口里面输入
conda create -n qutip-env python=3.5
而后一路yes便可
环境名字是qutip-env,一路yes便可
我这里配置的是python3.5的环境,不写等于多少,则默认安装最新版本
在这里插入图片描述
图片上输入有误,应该是Python=3.5,不是3,3默然安装的是最高版本的Python(如需删除环境conda remove -n *环境名 --all)
5.激活环境conda activate qutip-env;
在这里插入图片描述
6.安装必要的关联包
在环境里面输入命令
conda install numpy scipy cython matplotlib nose jupyter notebook spyder pandas
一路按yes便可python

(在这里不要用pip安装,不然到后面qutip安装会出错IndexMin Error)
在这里插入图片描述
由于我已安装numpy,因此图片上没有安
7. 安装QuTip
使用命令 pip install qutip
若是安装出错,错误信息是缺乏vs的相关配件,自行去网上找而后下载安装
看error(eg. error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”:web

8.测试环境
从qutip-env环境中进入python,输入测试代码:
import qutip.testing as qt
qt.run()
在这里插入图片描述svg

9.安装pycharm,而后把刚才配置好的环境添加进去便可测试

一些经常使用命令:ui

  1. 安装qutip时添加下载通道
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  2. 移除下载通道
    conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

参考网址:
https://jingyan.baidu.com/article/cbcede0760724802f40b4df2.html
百度教程3d

http://qutip.org/docs/latest/installation.html#checking-version-information-using-the-about-function
qutip官方文档orm

转载请注明地址