Requirement already satisfied: redis in d:\programdata\anaconda3\lib\site-packages (3.5.3)


今天在cmd窗口給python3.9安裝 redis 的時候,出現這個錯誤。

因為我本機安裝過pycharm,在pycharm里面安裝了redis包(但是這個redis包,python GUI 是無法使用,只能pycharm環境下使用)。在cmd下面給python安裝的時候,就報了這個錯誤。

Requirement already satisfied: redis in d:\programdata\anaconda3\lib\site-packages (3.5.3)

 

解決方法:
1.找到 python3.9的安裝目錄下的pip.exe

在 python3.9安裝目錄,找到下面的Scripts,里面有 pip.exe 的可執行文件

 

 2.cmd窗口打開Scripts路徑

在Scripts目錄下,按住shift 鍵,並點擊鼠標右鍵,選擇【在此處打開 Powershell 窗口】

 

3. 指定 安裝路徑,並安裝redis 

 pip.exe install redis  --target=C:\Users\Administrator\AppData\Local\Programs\Python\Python39\Lib\site-packages

安裝包安裝在 python 的 Lib\site-packages 目錄下。

4.安裝成功

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 安裝python模塊是報錯Requirement already satisfied: pymysql in c:\python27\lib\site-packages (0.9.2) Requirement already satisfied: cryptography in c:\python27\lib\site-packages (fr om pymysql) (2.3.1) 【python】win10配置pycharm 關於Error processing line 7 of D:\softwares\Anaconda3\lib\site-packages\pywin32.pth 問題的解決 WARNING: Ignoring invalid distribution -ip (d:\anaconda\envs\pytorch1_7\lib\site-packages) 報錯:Cannot remove entries from nonexistent file c:\program files\anaconda3\lib\site-packages\easy-install.pth python torch 解決OSError: [WinError 126] 找不到指定的模塊。 Error loading "D:\Anaconda3\lib\site-packages\torch\lib\asmjit.dll" or one of its dependencies.(安裝完torch模塊后出現找不到指定模塊的問題) yolov5-OSError: [WinError 1455] 頁面文件太小,無法完成操作。 Error loading "C:\Anaconda3\lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll" OSError: [WinError 1455] 頁面文件太小,無法完成操作。 Error loading "C:\Anaconda3\lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll" 因安裝pytest最新版本導致,運行pytest命令出錯:pluggy.manager.PluginValidationError: unknown hook 'pytest_namespace' in plugin python matplotlib庫找不到文件[Errno 2] No such file or directory: 'C:\\Users\\18136\\Anaconda3\\lib\\site-packages\\matplotlib\\mpl-data\\sample_data\\goog.npz' jupyter導入pyecharts 顯示報錯cannot import name 'Bar' from 'pyecharts' (D:\Download\ANACONDA\envs\charts\lib\site-packages\pyecharts\__init__.py)
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM