gpt4 book ai didi

python - pip 安装 python3-memcached 失败

转载 作者:太空宇宙 更新时间:2023-11-03 12:59:09 26 4
gpt4 key购买 nike

当我尝试使用以下命令安装 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

关于python - pip 安装 python3-memcached 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28851037/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com