parse icon indicating copy to clipboard operation
parse copied to clipboard

pip install parse doesn't work

Open superhiro2a opened this issue 2 years ago • 1 comments

I run in cmd pip install parse, but doesnt work.

Requirement already satisfied: parse in c:\users\mynamecom\appdata\local\programs\python\python310\lib\site-packages (1.19.0)

but

in running in cmd script python

from parse import parse

ModuleNotFoundError: No module named 'parse'

superhiro2a avatar Apr 15 '22 07:04 superhiro2a

Mmh, works for me with Python 3.10 and parse v1.19.0 (but I am not using Windows). I assume the problem is somewhere on your side. For example, you are using another python version that is not using your site-packages directory that you mentioned above.

To better diagnose and understand it, do the following:

# ORIGINAL: from parse import parse
# HINT: May need to fix the double-quotes style forced by the Github editor.
from __future__ import print_function
import sys

try:
    from parse import parse
except ImportError as e:
    print(„EXCEPTION %s: %s“ % (e.__class__.__name__, e))
    print(„PYTHON.version: %s“ % sys.version)
    for p in sys.path:
        print(p)

WORST CASE RESOLUTION:

python3 -mpip install -U parse
# OR:
C:\path_to_your\python_version\python.exe -mpip install -U parse

jenisys avatar Apr 15 '22 08:04 jenisys

You might be installing packages to another version of python or you're running the code with a different version On windows you should use the py launcher

first run py -0 to see which versions of python you have in your system

then to specify a python version you can do py -3.10, and then

# to install the package
&> py -3.10  -m pip install parse

# to run the file
&> py -3.10 filename.py

Irtiza90 avatar Oct 06 '22 10:10 Irtiza90

Not reproducible.

wimglenn avatar Jun 17 '23 05:06 wimglenn