[Share Experiences] deepin UOS Linux Pycharm 自定义 Python3 解释器
Tofloor
poster avatar
zizdong
deepin
Forum Operations
2023-08-04 18:47
Author

转载自:李昊哲小课

本文的方法有一定的风险,请确保电脑数据已备份再进行操作

下载编译安装

sudo apt -y install wget
wget https://www.python.org/ftp/python/3.10.7/Python-3.10.7.tar.xz
tar -xvf Python-3.10.7.tar.xz
cd Python-3.10.7/
sudo ./configure --prefix=/opt/python310 --enable-optimizations
# sudo  ./configure --enable-optimizations
sudo make -j8
sudo make install -j8

修改环境变量

sudo deepin-editor /etc/profile
# 或者
sudo vim /etc/profile
# 追加以下内容
export PYTHON3_HOME=/opt/python310
export PATH=$PYTHON3_HOME/bin:$PATH

修改软连接指向

sudo ln -snf /opt/python310/bin/python3 /usr/bin/python3

升级pip

python3 -m pip install --upgrade pip
pip3 install --upgrade setuptools

Pycharm 自定义 Python3 解释器

1.png

2.png

3.png

4.png

5.png

6.png

7.png

8.png

9.png

10.png

11.png

Reply Favorite View the author
All Replies
2 / 2
To page
来自Ubuntu的某位用户
deepin
2023-08-07 00:56
#21

有一个叫pypy的Python解释器,运行速度比Python默认的解释器快很多

Reply View the author
软件技术就是生产力
deepin
2023-08-07 05:14
#22
The user is banned, and the content is hidden.
安洛
deepin
2023-08-07 06:07
#23
软件技术就是生产力
The user is banned, and the content is hidden.

不是每个人都能承担得起犯错的代价。我在论坛里见过五次以上错误操作导致丢失数据的了。保证安全的才叫学习。

Reply View the author
软件技术就是生产力
deepin
2023-08-07 22:53
#24
The user is banned, and the content is hidden.
安洛
deepin
2023-08-08 04:14
#25
软件技术就是生产力
The user is banned, and the content is hidden.

鼓励见义勇为救人,和推广急救知识培训矛盾吗?不矛盾。

同样的道理,鼓励发技术文章,和提高技术文章水平矛盾吗?也不矛盾。

我们当然鼓励发技术文章,对于这种优秀的技术文章我们加精鼓励。但是,这不影响我们对文章中的不足加以补充。

Reply View the author
2 / 2
To page