python3.7.1安装

明确:不用Anaconda3安装python

Issue1:win10,安装python3.7.1,一直提示 0x80070642 “用户取消了安装”

https://jingyan.baidu.com/article/60ccbceb4f5a0f64cab197d2.html
solution:不要选择安装给所有的用户~~~~

Issue2:‘pip’ 不是内部或外部命令,也不是可运行的程序
查得:pip在目录:C:\Users\sq\AppData\Local\Programs\Python\Python37\Scripts\下面。
solution:添加环境变量 pip 所在的根目录到系统路径中 Path 变量

环境变量->path->添加
C:\Users\sq\AppData\Local\Programs\Python\Python37\Scripts\

Issue3:pycharm导入本地文件,程序运行正常,但导入模块时出现红色波浪线
solution:
pycharm导模块飘红但能运行,第一种办法在模块前面加点,经试验不可行。

https://blog.csdn.net/sinat_33718563/article/details/83508112
命令行学习

更新pip
python -m pip install --upgrade pip

更新模块:
pip install -U tensorflow

安装制定版本:
pip install tensorflow==1.2.1

卸载
pip uninstall tensorflow

python学习——如何查看安装包的版本

方法一:pip list
方法二:进入Python交互模式

运行cmd,打开命令提示框,直接输入python 回车,进入python交互模式。以django为例,import django,然后,django.VERSION即可。注意要大写,如下:

方法三:进入Python交互模式,输入 help(keras)
 

发布了9 篇原创文章 · 获赞 459 · 访问量 16万+

猜你喜欢

转载自blog.csdn.net/songhait/article/details/96287408