[英]Problems with Python 3.9 installation
I'm quite new to all of this programming universe.我对所有这个编程世界都很陌生。 I recently installed the latest version of python (3.9.1 from a tar.gz) so I configured vscode to use that one, when I run any scripts in it without debugging, it shows the following error in the last line of Traceback:我最近安装了最新版本的 python(来自 tar.gz 的 3.9.1),所以我将 vscode 配置为使用那个版本,当我在其中运行任何脚本而不调试时,它在 Traceback 的最后一行显示以下错误:
ModuleNotFoundError: No module named '_ctypes'
I just ignored it because I realized that when I change to pyhton 3.9 vs code shows a message "Linter pylint is not installed" excepting to fix the problem I select install but then it tells me that pip module is not builtin in python 3.9, I run in the python interpreter:我只是忽略了它,因为我意识到当我更改为 pyhton 3.9 时,vs 代码显示一条消息“未安装 Linter pylint”,除了解决我安装 select 的问题,但随后它告诉我 pip 模块未内置在 python 3.9 中,我在 python 解释器中运行:
>>> import pip
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pip'
I run the same script in other python interpreter (3.8) that came with the OS without any issues.我在操作系统附带的其他 python 解释器 (3.8) 中运行相同的脚本,没有任何问题。 Then I decided to install pip with the get-pip.py method BUT then it tells me that zlib module is not there:然后我决定使用 get-pip.py 方法安装 pip 但是它告诉我 zlib 模块不存在:
Traceback (most recent call last):
File "<frozen zipimport>", line 520, in _get_decompress_func
ModuleNotFoundError: No module named 'zlib'
If I run get-pip.py with python3.8 and it completes the task successfully.如果我用 python3.8 运行 get-pip.py 并且它成功完成了任务。
Can somebody guide me?有人可以指导我吗? I'm feeling like giving up and just use python3.8 but I really wanna overcome this issue.我想放弃并只使用 python3.8 但我真的想克服这个问题。 For some reason that I don't understand my python 3.9 installation seems to be messed up and I followed the readme instructions.出于某种原因,我不明白我的 python 3.9 安装似乎一团糟,我按照自述文件的说明进行操作。
PD: I use Linux Mint 20.1 PD:我使用 Linux Mint 20.1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.