Aug-02-2018, 05:23 PM
(This post was last modified: Aug-02-2018, 05:23 PM by SchroedingersLion.)
# Give path and run hello.py
C:\WINDOWS\system32>python C:\testpy\hello.py
gives:
"can't open file 'C:\testpy\hello.py" and "no such file or directory"
# cd into testpy
C:\WINDOWS\system32>cd C:\testpy
works!
# Run when in folder of hello.py
C:\testpy>python hello.py
gives again:
"can't open file 'C:\testpy\hello.py" and "no such file or directory"
# cd to root C:
C:\testpy>cd\
works!
# Test where python run from,these command should be same no matter what folder you into in cmd
C:\>python -c "import sys; print(sys.executable)"
gives: C:\Users\myname\AppData\Local\Programs\Python\Python37-32\Python.exe
# Test pip
C:\>pip -V
gives
pip 10.0.1 from c:\users\myname\appdata\local\programs\python\python37-32\lib\site
-packages\pip (python 3.7)
# cd into testpy
C:\>cd testpy
works again
# List files
C:\testpy>dir
works, see the same as you.
# Spelling error
C:\testpy>more hell.py
gives "can't access file" again...
# Ok
C:\testpy>more hello.py
gives "can't access file"...
my name has a special symbol: "ยด"
Can this be the problem in
pip 10.0.1 from c:\users\myname\appdata\local\programs\python\python37-32\lib\site
-packages\pip (python 3.7)
where "myname" is actually my real name with the special symbol?
C:\WINDOWS\system32>python C:\testpy\hello.py
gives:
"can't open file 'C:\testpy\hello.py" and "no such file or directory"
# cd into testpy
C:\WINDOWS\system32>cd C:\testpy
works!
# Run when in folder of hello.py
C:\testpy>python hello.py
gives again:
"can't open file 'C:\testpy\hello.py" and "no such file or directory"
# cd to root C:
C:\testpy>cd\
works!
# Test where python run from,these command should be same no matter what folder you into in cmd
C:\>python -c "import sys; print(sys.executable)"
gives: C:\Users\myname\AppData\Local\Programs\Python\Python37-32\Python.exe
# Test pip
C:\>pip -V
gives
pip 10.0.1 from c:\users\myname\appdata\local\programs\python\python37-32\lib\site
-packages\pip (python 3.7)
# cd into testpy
C:\>cd testpy
works again
# List files
C:\testpy>dir
works, see the same as you.
# Spelling error
C:\testpy>more hell.py
gives "can't access file" again...
# Ok
C:\testpy>more hello.py
gives "can't access file"...
my name has a special symbol: "ยด"
Can this be the problem in
pip 10.0.1 from c:\users\myname\appdata\local\programs\python\python37-32\lib\site
-packages\pip (python 3.7)
where "myname" is actually my real name with the special symbol?