gpt4 book ai didi

python - 在 python 中安装了模块,但仍然出现错误

转载 作者:太空宇宙 更新时间:2023-11-03 16:45:00 25 4
gpt4 key购买 nike

我尝试使用Python安装peewee模块

sudo pip install peewee 但是当我运行脚本时仍然出现错误

sudo pip install peewee
[sudo] password for mounarajan:
The directory '/home/mounarajan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/mounarajan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting peewee
Downloading peewee-2.8.0.tar.gz (470kB)
100% |████████████████████████████████| 471kB 123kB/s
Installing collected packages: peewee
Running setup.py install for peewee ... done
Successfully installed peewee-2.8.0

尝试过这个 python 解释器

import peewee
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named peewee

最佳答案

安装软件包时不要使用“sudo”。

pip install peewee

关于python - 在 python 中安装了模块,但仍然出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36395311/

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