• 1398/12/23

نصب ماژول termcolor2 :

سلام

با نصب ماژول مشکل دارم

ممنون میشم راهنماییم کنید

PS C:\Users\hossein\Desktop\python> python3 -m pip install termcolor2 --user
python3 : The term 'python3' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the 
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ python3 -m pip install termcolor2 --user
+ ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (python3:String) [], CommandNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException

 

--------------------------------------------------------------------------------------------------------

PS C:\Users\hossein\Desktop\python> python -m pip install termcolor2 --user
Requirement already satisfied: termcolor2 in c:\users\hossein\appdata\roaming\python\python38\site-packages (0.0.3)
Requirement already satisfied: termcolor in c:\users\hossein\appdata\roaming\python\python38\site-packages (from termcolor2) (1.1.0)
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

-------------------------------------------------------------------------------------------------------------

PS C:\Users\hossein\Desktop\python> python -m pip install --upgrade pip
Collecting pip
  Using cached https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\program files (x86)\\python38-32\\lib\\site-packages\\pip-19.2.3.dist-info\\entry_points.txt'
Consider using the `--user` option or check the permissions.

WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

  • 1398/12/24
  • ساعت 11:45

سلام دوست من

ببینین زمانی شما باید از python3 استفاده کنین که نسخه ی 2 هم نصب کرده باشین

فقط از دستور python استفاده کنید ( بدون عدد )


  • 1399/01/05
  • ساعت 16:19

سلام استاد گرامی

من فقط از python   استفاده میکنم این پیام رو بهم میده و termcolor2 رو import میکنم کار نمیکنه

     | 20kB 1.5kB/s eta 0:09:18ERROR: Exception:
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python38-32\lib\site-packages\pip\_vendor\urllib3\response.py", line 397, in _error_catcher
    yield
  ....

WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.


  • 1399/01/13
  • ساعت 17:19

من هم همین مشکل رو دارم. اون قسمت اخر یعنی اپگرید رو هم انجام دادم ولی باز هم ماژول رو نمیشناسه

من یه نسخه بیشتر نصب نکردم و اونم نسخه 3 هستش.


  • 1399/07/13
  • ساعت 21:02

دستتون درد نکنه من راه حل آقای اردوخانی رو به کار بردم درست شد


logo-enamadlogo-samandehi