brew install python3
pip -V
pip 8.1.2 from /usr/local/lib/python3.5/site-packages (python 3.5)
pip install speedtest-cli
pip list
setuptools (21.2.2)
speedtest-cli (0.3.4)
wheel (0.26.0)
speedtest-cli
zsh: command not found: speedtest-cli
echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
很是操蛋,应该怎么修复 PATH 呢?
1
helloSwift 2016-07-23 10:37:47 +08:00 via iPhone
Python3 对应 pip3
|
2
isbase OP @helloSwift
➜ ~ pip -V pip 8.1.2 from /usr/local/lib/python3.5/site-packages (python 3.5) ➜ ~ python3 -m pip -V pip 8.1.2 from /usr/local/lib/python3.5/site-packages (python 3.5) |
3
loading 2016-07-23 11:00:56 +08:00 via Android
所以我现在都是放虚拟机里面了…
|
4
aristotll 2016-07-23 11:16:07 +08:00
which pip 不行吗
|
5
banxi1988 2016-07-23 11:21:04 +08:00
感觉你的环境跟我的不一样呢?
不过默认都是在 `/usr/local/bin` 目录下创建有链接的. Python 2 及 pip 是系统自带的. Python 3 是我用 brew install 安装 的. 这里没有 pip3 ,而是更具体的 pip3.5 ```console ➜ ~ which pip /usr/local/bin/pip ➜ ~ which pip3 pip3 not found ➜ ~ which pip3.5 /usr/local/bin/pip3.5 ➜ ~ which python /usr/bin/python ➜ ~ which python3 /usr/local/bin/python3 ➜ ~ ls -l $(which python3) lrwxr-xr-x 1 banxi admin 35 6 30 10:03 /usr/local/bin/python3 -> ../Cellar/python3/3.5.2/bin/python3 ➜ ~ ls -l $(which pip3.5) lrwxr-xr-x 1 banxi admin 34 6 30 10:03 /usr/local/bin/pip3.5 -> ../Cellar/python3/3.5.2/bin/pip3.5 ➜ ~ ls -l $(which pip) -rwxr-xr-x 1 banxi admin 204 7 9 22:49 /usr/local/bin/pip ➜ ~ ls -l $(which python) -rwxr-xr-x 1 root wheel 66736 3 12 16:37 /usr/bin/python ➜ ~ ``` |
6
macroideal 2016-07-23 11:23:21 +08:00
type pip
|
7
isbase OP |
8
CoX 2016-07-23 13:36:06 +08:00 via iPhone 1
/use/local/lib/python3.5/site-packages
在这个目录下,建个软链到 /usr/local/bin/下面吧 |
10
rashawn 2016-07-23 14:23:00 +08:00
楼主不会在装 Pokemon 的地图吧
|
11
itisthecon 2016-07-23 17:49:34 +08:00
我用 port 安装的 python3 居然是在这个目录:
/opt/local/Library/Frameworks/Python.framework/Versions/3.5/bin/ |