python 安装

Last updated on November 22, 2024 pm

🧙 Questions

python 安装说明

☄️ Ideas

linux安装
sudo yum install -y python3
压缩包安装
下载安装包
解压,配置环境变量

快捷键 win+R: sysdm.cpl

PATH: D:\tools\python\Scripts
PATH: D:\tools\python\

Note:
将系统 %USERPROFILE%\AppData\Local\Microsoft\WindowsApps 等级调低

安装测试

快捷键 win+R: cmd

python -V
安装pip
  • 下载安装脚本
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
  • 修改python39._pth配置
python39.zip
.

# Uncomment to run site.main() automatically
import site
  • 更新pip命令
d:\tools\python\python.exe -m pip install --upgrade pip
python -m pip install -U pip
python -m pip install -U setuptools
python -m pip install -U wheel
python -m pip install --upgrade pip
  • 测试安装
pip -V

windows安装

下载安装包

Note:
勾选 ADD PYTHON TO PATH
特性选择:Document/pip/tkinter/test suite
高级特性选择: 不下载其他全选

安装阿里镜像
  1. 查找配置文件路径
pip -v config list
  1. 创建配置文件
touch C:\\ProgramData\\pip\\pip.ini
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com
rpm安装
sudo rpm -ivh python3-3.6.8-17.el7.x86_64.rpm
requestment.txt
python3 -m pip install pipreqs
pipreqs ./
pipreqs ./  --force
anaconda
  • 安装anaconda,安装python环境
  • https://docs.anaconda.com/anaconda/install/mac-os/
  • conda config –set auto_activate_base false
    conda create -n python_3.8 python=3.8
    conda env list
    conda activate python_3.8
    conda remove -n ispong_py –all
    conda deactivate
pip install -r requirements.txt

python 安装
https://ispong.isxcode.com/pytorch/python/python 安装/
Author
ispong
Posted on
March 24, 2022
Licensed under