gpt4 book ai didi

python - 安装 colorama 时遇到问题

转载 作者:行者123 更新时间:2023-12-01 15:45:04 24 4
gpt4 key购买 nike

C:\Users\*****>pip install colorama
Collecting colorama
Using cached colorama-0.4.3-py2.py3-none-any.whl (15 kB)
Installing collected packages: colorama
Successfully installed colorama-0.4.3

C:\Users\*****>python
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import colorama
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'colorama'
>>> exit()

C:\Users\*****>pip uninstall colorama
Found existing installation: colorama 0.4.3
Uninstalling colorama-0.4.3:
Would remove:
c:\users\rober\appdata\local\programs\python\python38-32\lib\site-packages\colorama-0.4.3.dist-info\*
c:\users\rober\appdata\local\programs\python\python38-32\lib\site-packages\colorama\*
Proceed (y/n)? y
Successfully uninstalled colorama-0.4.3

C:\Users\*****>pip install "C:\Users\rober\Downloads\colorama-0.4.3-py2.py3-none-any.whl"
Processing c:\users\rober\downloads\colorama-0.4.3-py2.py3-none-any.whl
Installing collected packages: colorama
Successfully installed colorama-0.4.3

C:\Users\*****>python
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import colorama
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'colorama'

我不知道该怎么办。你可以看到我下载文件的位置,我运行的是最新的 pip 版本和 python 3.8。在网上搜索后,我空手而归。

最佳答案

我不知道你是否还需要帮助,但我遇到了同样的问题并设法解决了它。

我刚刚进入 cmd 并输入:

pip install colorama --user

它对我有用(我是编码和 python 的新手,所以我有 3.8.3 并且在几个 pip 安装中遇到了类似的问题)。

关于python - 安装 colorama 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60156492/

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