Pip install: can't open file pip, or Parent module '' not loaded

前端 未结 3 1891
谎友^
谎友^ 2021-02-14 15:35

Thanks for reading this in the first place.

I\'m trying to install Django. So here\'s what I do in the command line:

C:\\>python34 pip install Django
         


        
相关标签:
3条回答
  • 2021-02-14 16:14

    IIRC, pip on Windows installs to C:\Python34\Scripts by default. So, if that's isn't on your system path, you'd actually need to do this:

    C:\> \Python34\Scripts\pip install Django
    

    Also, read up in virtualenv and virtualenvwrapper. It'll make your life a lot easier - cheers.

    0 讨论(0)
  • 2021-02-14 16:28

    Assuming you have pip installed and you want to do this through python as opposed to the standalone pip client, you can also do

    python -m pip install SomePackage
    
    0 讨论(0)
  • 2021-02-14 16:31

    The command pip is not a Python module. It is an executable. This should work:

    C:\> pip install Django
    
    0 讨论(0)
提交回复
热议问题