Command not found: django-admin.py

前端 未结 27 1847
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 02:40

I am a complete beginner to Python/Django, but I want to dive right in and start experimenting. Thus I was following this guide on installing Python/Django http://devcenter.

相关标签:
27条回答
  • 2020-12-03 03:41

    It has to do with the PATH:

    Put this in the .bash_profiel and the source it (for mac users only): (change the location with the location of your installed python libraries)

    PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
    export PATH
    
    0 讨论(0)
  • 2020-12-03 03:41

    If someone is facing the same problem, and is on MacOs, here is what I did, and it worked for me:

    If you've installed python directly from the official website, uninstall it, and install it once again using brew:

    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
    $ brew install python3
    

    This will also install the pip3 for you, so you don't have to install it by yourself.

    0 讨论(0)
  • 2020-12-03 03:42

    I was just having the same problem, I just did an upgrade and that's it, it worked, I hope this is useful for future problems in Linux:

    pip install --upgrade django
    
    0 讨论(0)
提交回复
热议问题