先切換至 root 身分:
$
sudo –i
輸入密碼後, 使用 curl 安裝 pip3:
# curl -k
https://bootstrap.pypa.io/get-pip.py | python3
之後會得到警告訊息,
說明 pip, pip3 等之安裝路徑
:
WARNING: The scripts pip, pip3 and pip3.5 are
installed in '/volume1/@appstore/py3k/usr/local/bin' which is not on PATH.
Consider
adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING:
The scripts easy_install and easy_install-3.5 are installed in '/volume1/@appstore/py3k/usr/local/bin'
which is not on PATH.
Consider
adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
WARNING:
The script wheel is installed in '/volume1/@appstore/py3k/usr/local/bin'
which is not on PATH.
Consider
adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
因為可執行的 script 檔案會在第一行使用 #! 指示使用哪一個命令解譯器, 我想使用 #!/bin/python3, 因此建立 symbolic link:
# ln -s /volume1/@appstore/py3k/usr/local/bin/pip3 /bin/pip3
# ln -s /volume1/@appstore/py3k/usr/local/bin/python3.5 /bin/python3就可以排程使用了
沒有留言:
張貼留言