You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use pipenv as well as pip and having some issues. I installed pipenv using pip. I installed pipenv using pip. Then I went back and tried to run pip -v and got the following: ImportError: cannot import name main. I have seen this question answered for Linux and Mac, but I cannot use sudo or which commands; I am on Windows 10 using the CMD console. In my scripts folder, I see pip, pip2.7, and pip2. I cannot remember which one was my system pip. I know I need to maybe uninstall and reinstall (I have already tried to upgrade, but of course, without pip running you can't upgrade pip). I don't want to make more of a mess, so I wanted to ask how to resolve this in the CMD console on Windows.
Expected behavior
$pip -v #should return version
How to Reproduce
$pip install --user pipenv
Get package from '...'
Then run '$pip -v'
An error occurs.
ImportError: cannot import name main.
Output
$pip install --user pipenv
$pip -v
Traceback (most recent call last):
File "c:\python27\arcgis10.5\lib\runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "c:\python27\arcgis10.5\lib\runpy.py", line 72, in _run_code
exec code in run_globals
File "C:\Python27\ArcGIS10.5\Scripts\pip.exe\__main__.py", line 5, in <module>
ImportError: cannot import name main
The text was updated successfully, but these errors were encountered:
Environment
Description
I am trying to use pipenv as well as pip and having some issues. I installed pipenv using pip. I installed pipenv using pip. Then I went back and tried to run pip -v and got the following: ImportError: cannot import name main. I have seen this question answered for Linux and Mac, but I cannot use sudo or which commands; I am on Windows 10 using the CMD console. In my scripts folder, I see pip, pip2.7, and pip2. I cannot remember which one was my system pip. I know I need to maybe uninstall and reinstall (I have already tried to upgrade, but of course, without pip running you can't upgrade pip). I don't want to make more of a mess, so I wanted to ask how to resolve this in the CMD console on Windows.
Expected behavior
$pip -v #should return version
How to Reproduce
$pip install --user pipenv
ImportError: cannot import name main.
Output
The text was updated successfully, but these errors were encountered: