Python——安装与命令备忘

https://www.python.org/downloads/release/python-2718/

sudo pip uninstall pip

curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py

sudo python get-pip.py

sudo easy_install pip

python -m pip install --upgrade pip

pip --version

python --version

vim ~/.bash_profile
source ~/.bash_profile
export PIP_PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin
export PATH=$PIP_PATH:$PATH

which python
which pip

pip list
pip list --path /Users/admin/Library/Python/2.7/lib/python/site-packages/
pip list --path /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
pip list --path /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/

pip install click==5.1

pip install 安装目录问题
python -m site


bogon:newres admin$ pip list --path /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Package Version
------------ -------
Cheetah 2.4.4
click 7.1.2
cloudpickle 1.3.0
configparser 4.0.2
doit 0.29.0
et-xmlfile 1.0.1
jdcal 1.4.1
MacFSEvents 0.8.1
Markdown 2.3.1
openpyxl 2.6.4
Pillow 6.2.2
pip 20.3.4
PyYAML 3.11
setuptools 41.2.0
six 1.16.0

 

posted @ 2021-07-08 17:14  会飞的斧头  阅读(84)  评论(0编辑  收藏  举报