pip install python3-memcached 失败
pip install python3-memcached fails
当我尝试使用以下命令安装 python3-memcached 时,
pip install python3-memcahed
失败并输出以下错误,
Collecting python3-memcached
Using cached python3-memcached-1.51.tar.gz
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/pl/5d9_g9ld38d9r_36fhqwzzb40000gp/T/pip-build-UuR8g9/python3-memcached/setup.py", line 4, in <module>
import memcache
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/pl/5d9_g9ld38d9r_36fhqwzzb40000gp/T/pip-build-UuR8g9/python3-memcached/setup.py", line 4, in <module>
import memcache
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/pl/5d9_g9ld38d9r_36fhqwzzb40000gp/T/pip-build-UuR8g9/python3-memcached
上述错误中指定的文件路径不存在
仅供参考:我使用 brew 安装 python3
尝试以下操作(使用 sudo):
sudo pip3 install python3-memcached
对于 python3 包最好使用 pip3。如果您没有安装它,请输入:
sudo apt-get install python3-pip
如果你在使用 virtualenvs,如果你将 virtualenv 创建为:
mkvirtualenv myenv --python=`which python3`
当我尝试使用以下命令安装 python3-memcached 时,
pip install python3-memcahed
失败并输出以下错误,
Collecting python3-memcached
Using cached python3-memcached-1.51.tar.gz
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/pl/5d9_g9ld38d9r_36fhqwzzb40000gp/T/pip-build-UuR8g9/python3-memcached/setup.py", line 4, in <module>
import memcache
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/pl/5d9_g9ld38d9r_36fhqwzzb40000gp/T/pip-build-UuR8g9/python3-memcached/setup.py", line 4, in <module>
import memcache
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/pl/5d9_g9ld38d9r_36fhqwzzb40000gp/T/pip-build-UuR8g9/python3-memcached
上述错误中指定的文件路径不存在
仅供参考:我使用 brew 安装 python3
尝试以下操作(使用 sudo):
sudo pip3 install python3-memcached
对于 python3 包最好使用 pip3。如果您没有安装它,请输入:
sudo apt-get install python3-pip
如果你在使用 virtualenvs,如果你将 virtualenv 创建为:
mkvirtualenv myenv --python=`which python3`