简体   繁体   中英

python pip install os windows errno 2

trying to pip install the os modules on a Python 3.6 build on windows 10. Searching has led me to run as administrator, to try to update pip, run with a different cache directory so it downloads a fresh tarball, and also update setuptools. No luck with anything. Very odd to me is the double backslash in the filename. I'm very green when it comes to the python architecture. One thing that may or may not be relevant is that this is a replacement PC where I attempted to migrate data from my Win7 PC. But that may be a red herring. Anyway here's the output. Any help appreciated. Thanks!

c:\Python36>pip install os
Collecting os
  Using cached os-0.5.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\python36\lib\tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\swideb\\AppData\\Local\\Temp\\pip-build-_g65v8sr\\os\\setup.py'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\swideb\AppData\Local\Temp\pip-build-_g65v8sr\os\

c:\Python36>

The os package comes standard. See here for the Python 3.6 library. No need to install it with pip. Just import os .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM