使用pycharm和python遇到的一些问题

1.python的下载安装:基于win10系统安装Python3.7.3全流程
win10安装python3.7以及添加环境变量
下载python3.8.5出现问题:
在这里插入图片描述
解决方法:尽量别下web-Based版本,网络问题可能是影响下载成功的因素
之后下载了python3.7.8版本,,在选择时勾选了Add to PATH,之后没有添加环境变量这一步就可以使用。

2.运行pycharm时报错:Error running ‘main’: @NotNull method com/intellij/execution/configurations/GeneralCommandLine.GetExePath must not return null

在这里插入图片描述
在这里插入图片描述解决方法:Pycharm报错解决:error:please select a valid Python interpreter
需要在python interpreter中添加运行python中的程序。

3.运行pycharm报错:D:\python3.7.8\python.exe: can’t open file ‘D:/pythonProject1/main.py’: [Errno 2] No such file or directory
在这里插入图片描述
看了网上很多回答,有说路径问题有说文件名后缀问题,但没有一个能让我看懂的回答。

最后最后:注意命令式编程和函数式编程!

猜你喜欢

转载自blog.csdn.net/qq_44229840/article/details/108509337