1.运行命令行时要使用管理员身份打开,否则出现寻找不到TensorFlow的问题
2.修改源镜像网站为清华大学源镜像网站:
3.如何查看配置文件.condarc,可以通过conda info -a命令查看路径C:UsersAdministrator.condarc。通过记事本直接打开。其实也就是在运行conda config后在c:/user/administrator下,打开后可以配置源镜像网址。
4.
//创建py35名称的python3.5的虚拟环境**
conda create –n py35 python=3.5
//安装成功后使用activate激活环境
activate py35
//执行命令
python –version
可以看到当前版本
5.对于为啥没有Python3,是因为要先通过命令行进入py35的虚拟环境,运行:pip install ipykernel,再打开jupyter notebook。ps:
pip安装scrapy报错 ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org, port=443) Read time out
ini="""[global]
index-url = https://pypi.doubanio.com/simple/
[install]
trusted-host=pypi.doubanio.com
"""
pippath=os.environ["USERPROFILE"]+"\\pip\\"
if not os.path.exists(pippath):
os.mkdir(pippath)
with open(pippath+"pip.ini","w+") as f:
f.write(ini)
>> activate py3
进入py3的虚拟环境,再打开jupyter notebook,就是python3内核了