Hi,大家好,我是编程小6,很荣幸遇见你,我把这些年在开发过程中遇到的问题或想法写出来,今天说一说Deepin UOS Linux Pycharm 自定义 Python3 解释器「建议收藏」,希望能够帮助你!!!。
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
python3 -m pip install --upgrade pip
pip3 install --upgrade setuptools