python完全不了解,今天根據教程裝好python,附上參考鏈結 在mac osx中搭建python整合開發環境** – 碼農網
然後想除錯乙個程式,說要裝pip,於是上python官網,點開pypi
密密麻麻一片,看不太懂是什麼,於是點開左側導航中的pypi tutorial進去看看
第一段說當前文件不再維護,有更新的資料並給出了鏈結,直接點進去了
pip是用於安裝和管理python包的工具,那installing packages應該有些資訊是我要的,點進去
在目錄第第二條就看到的安裝pip的描述,點進去,往下看很快就找到安裝pip的描述
last login: tue nov 29 19:27:00 on ttys001
192:downloads lishengda$ python get-pip.py
collecting pip
downloading pip-9.0.1-py2.py3-none-any.whl (1.3mb)
100% |████████████████████████████████| 1.3mb 95kb/s
collecting wheel
downloading wheel-0.29.0-py2.py3-none-any.whl (66kb)
100% |████████████████████████████████| 71kb 89kb/s
installing collected packages: pip, wheel
exception:
traceback (most recent call last):
file "/var/folders/wz/_d4crmhd0nn5qlffdt3s4c3c0000gp/t/tmprarzv1/pip.zip/pip/basecommand.py", line 215, in main
status = self.run(options, args)
file "/var/folders/wz/_d4crmhd0nn5qlffdt3s4c3c0000gp/t/tmprarzv1/pip.zip/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
file "/var/folders/wz/_d4crmhd0nn5qlffdt3s4c3c0000gp/t/tmprarzv1/pip.zip/pip/req/req_set.py", line 784, in install
**kwargs
file "/var/folders/wz/_d4crmhd0nn5qlffdt3s4c3c0000gp/t/tmprarzv1/pip.zip/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
file "/var/folders/wz/_d4crmhd0nn5qlffdt3s4c3c0000gp/t/tmprarzv1/pip.zip/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
file "/var/folders/wz/_d4crmhd0nn5qlffdt3s4c3c0000gp/t/tmprarzv1/pip.zip/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, true)
file "/var/folders/wz/_d4crmhd0nn5qlffdt3s4c3c0000gp/t/tmprarzv1/pip.zip/pip/wheel.py", line 316, in clobber
ensure_dir(destdir)
file "/var/folders/wz/_d4crmhd0nn5qlffdt3s4c3c0000gp/t/tmprarzv1/pip.zip/pip/utils/__init__.py", line 83, in ensure_dir
os.makedirs(path)
file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
oserror: [errno 13] permission denied: '/library/python/2.7/site-packages/pip'
報錯,不知何故,想起來我裝的python是3.4,於是把指令換成python3 get-pip.py試了下,果然通過。
192:downloads lishengda$ python3 get-pip.py
collecting pip
using cached pip-9.0.1-py2.py3-none-any.whl
collecting wheel
using cached wheel-0.29.0-py2.py3-none-any.whl
installing collected packages: pip, wheel
found existing installation: pip 8.1.1
uninstalling pip-8.1.1:
successfully uninstalled pip-8.1.1
successfully installed pip-9.0.1 wheel-0.29.0
192:downloads lishengda$
未及深究,很多地方帶猜的,先記下,以後明白了再更新
pip 安裝報錯ssl
pip 安裝報錯ssl 具體錯誤資訊如下 there was a problem confirming the ssl certificate ssl tlsv1 alert protocol version tlsv1 alert protocol version ssl.c 590 skippi...
mac裝mysql報錯 mac下安裝mysql報錯
在執行命令 pip install mysql 或者 pip install mysqldb時候,報錯 mysql config command not found command python setup.py egg info failed with error code 1 in privat...
Python下pip報錯問題
可能是我重新安裝了vscode和loadrunner的原因,pip就失靈了,出現了如下錯誤提示,然後網上查了一圈,發現了乙個和我一樣的博主,他是這麼解決的 可能有的人看不懂博主的意思,我解釋一下,首先呢就是開啟你python目錄下的scripts檔案,我給出我的路徑名,你們自己對比 然後開啟後在第一...