Python Forum
AttributeError when installing PIP
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AttributeError when installing PIP
#10
Go to Scripts folder in cmd and test if it's environment Path problem.
When in folder it will use what's in folder and not what set in Windows environment Path.
C:\Users\Tom>cd\
C:\>cd Python27
C:\Python27>cd scripts

C:\Python27\Scripts>pip --version
pip 18.1 from c:\python27\lib\site-packages\pip (python 2.7)
C:\Python27\Scripts>
So Script folder is placement of pip.exe.
I do of course not have 2.7 as main version in Path.
If go to any other folder i will use Python 3.8.
C:\Python27\Scripts>cd ..
C:\Python27>cd ..

C:\>pip --version
pip 20.2.3 from c:\python38\lib\site-packages\pip (python 3.8)
C:\>python --version
Python 3.8.3
Also if have python 3.8 installed then can use py(new in Python 3.3 -->),to access all version from Python.org.
# Use py 
C:\>py -2.7 --version
Python 2.7.9

# Use pip from py
C:\>py -2.7 -m pip install logzero
Requirement already satisfied: colorama; sys_platform == "win32" in c:\python27\
lib\site-packages (from logzero) (0.3.2)
Reply


Messages In This Thread
AttributeError when installing PIP - by stevecomp - Sep-16-2020, 08:39 AM
RE: AttributeError when installing PIP - by snippsat - Sep-16-2020, 03:38 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020