python依赖发布

python依赖发布

mkdir -p /python/dependency

cd /python/dependency

tar -zxvf pip-21.2.4.tar.gz
tar -xvf package-linux.tar

cd pip-21.2.4
python3.8 setup.py install

vi ~/.bashrc
alias pip=/usr/local/python3/bin/pip
source ~/.bashrc


cd /python/dependency 
pip install --no-index --find-link=./package-linux -r package.py

pip config set global.index-url https://pypi.douban.com/simple/

# 编译
python -m build --wheel
python setup.py install
twine check dist/*
twine upload dist/*

# 官方源地址
https://pypi.org/simple
# 使用指定源下载依赖
pip3 install aisrfwk -i https://pypi.org/simple

你可能感兴趣的:(python,开发语言,linux)