Python Forum
Cannot open file [ERNO 22] INVALID ARGUMENT
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot open file [ERNO 22] INVALID ARGUMENT
#10
Add Python to Windows PATH Environment as mention.
You add:
C:\Python27\
C:\Python27\Scripts
Then in path it look like this C:\Python27\;C:\Python27\Scripts\;
Restart PC.

Now should python work from anywhere in cmd like this.
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. Med enerett.

C:\Windows\System32>cd\

C:\>python
Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

C:\>py -2.7
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

C:\>
You should see python 2.7 start opp from root C:\ or anywhere in cmd.
Reply


Messages In This Thread
RE: Cannot open file [ERNO 22] INVALID ARGUMENT - by snippsat - Jan-04-2018, 04:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Open and read a tab delimited file from html using python cgi luffy 2 2,713 Aug-24-2020, 06:25 AM
Last Post: luffy
  Open unuploaded file bhojendra 1 2,264 Jul-19-2019, 04:10 AM
Last Post: micseydel
  Open Sqlite database file directly in django sourabhjaiswal92 0 2,973 May-22-2018, 05:55 AM
Last Post: sourabhjaiswal92

Forum Jump:

User Panel Messages

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