Django is installed but python3 does not find it












0















I'm having problems running Django. I installed it with pip3 and then it says:




The script django-admin is installed in
'/Library/Frameworks/Python.framework/Versions/3.5/bin' which is not
on PATH.




So I tried to modify my PATH in the bash.profile like this:




export DJANGO=/Library/Frameworks/Python.framework/Versions/3.5/bin




This did not help so as I ran in terminal:




django-admin.py startproject firstdjango




it just says:




-bash: django-admin.py: command not found




I don't know what to do to make it work. Any ideas?










share|improve this question


















  • 1





    you should try django-admin startproject firstdjango without .py extenstion

    – Vivek Singh
    Nov 23 '18 at 11:41













  • PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin django-admin startproject firstdjango. if the command succeeds, persist PATH changes: open ~/.bash_profile and add two lines: PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin and export PATH.

    – hoefling
    Nov 23 '18 at 11:43






  • 1





    Why aren't you using a virtualenv?

    – Daniel Roseman
    Nov 23 '18 at 11:54











  • Tried that aswell, see the comments in answer below.

    – bnc
    Nov 23 '18 at 16:59
















0















I'm having problems running Django. I installed it with pip3 and then it says:




The script django-admin is installed in
'/Library/Frameworks/Python.framework/Versions/3.5/bin' which is not
on PATH.




So I tried to modify my PATH in the bash.profile like this:




export DJANGO=/Library/Frameworks/Python.framework/Versions/3.5/bin




This did not help so as I ran in terminal:




django-admin.py startproject firstdjango




it just says:




-bash: django-admin.py: command not found




I don't know what to do to make it work. Any ideas?










share|improve this question


















  • 1





    you should try django-admin startproject firstdjango without .py extenstion

    – Vivek Singh
    Nov 23 '18 at 11:41













  • PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin django-admin startproject firstdjango. if the command succeeds, persist PATH changes: open ~/.bash_profile and add two lines: PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin and export PATH.

    – hoefling
    Nov 23 '18 at 11:43






  • 1





    Why aren't you using a virtualenv?

    – Daniel Roseman
    Nov 23 '18 at 11:54











  • Tried that aswell, see the comments in answer below.

    – bnc
    Nov 23 '18 at 16:59














0












0








0








I'm having problems running Django. I installed it with pip3 and then it says:




The script django-admin is installed in
'/Library/Frameworks/Python.framework/Versions/3.5/bin' which is not
on PATH.




So I tried to modify my PATH in the bash.profile like this:




export DJANGO=/Library/Frameworks/Python.framework/Versions/3.5/bin




This did not help so as I ran in terminal:




django-admin.py startproject firstdjango




it just says:




-bash: django-admin.py: command not found




I don't know what to do to make it work. Any ideas?










share|improve this question














I'm having problems running Django. I installed it with pip3 and then it says:




The script django-admin is installed in
'/Library/Frameworks/Python.framework/Versions/3.5/bin' which is not
on PATH.




So I tried to modify my PATH in the bash.profile like this:




export DJANGO=/Library/Frameworks/Python.framework/Versions/3.5/bin




This did not help so as I ran in terminal:




django-admin.py startproject firstdjango




it just says:




-bash: django-admin.py: command not found




I don't know what to do to make it work. Any ideas?







python django python-3.x






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 23 '18 at 11:33









bncbnc

278




278








  • 1





    you should try django-admin startproject firstdjango without .py extenstion

    – Vivek Singh
    Nov 23 '18 at 11:41













  • PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin django-admin startproject firstdjango. if the command succeeds, persist PATH changes: open ~/.bash_profile and add two lines: PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin and export PATH.

    – hoefling
    Nov 23 '18 at 11:43






  • 1





    Why aren't you using a virtualenv?

    – Daniel Roseman
    Nov 23 '18 at 11:54











  • Tried that aswell, see the comments in answer below.

    – bnc
    Nov 23 '18 at 16:59














  • 1





    you should try django-admin startproject firstdjango without .py extenstion

    – Vivek Singh
    Nov 23 '18 at 11:41













  • PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin django-admin startproject firstdjango. if the command succeeds, persist PATH changes: open ~/.bash_profile and add two lines: PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin and export PATH.

    – hoefling
    Nov 23 '18 at 11:43






  • 1





    Why aren't you using a virtualenv?

    – Daniel Roseman
    Nov 23 '18 at 11:54











  • Tried that aswell, see the comments in answer below.

    – bnc
    Nov 23 '18 at 16:59








1




1





you should try django-admin startproject firstdjango without .py extenstion

– Vivek Singh
Nov 23 '18 at 11:41







you should try django-admin startproject firstdjango without .py extenstion

– Vivek Singh
Nov 23 '18 at 11:41















PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin django-admin startproject firstdjango. if the command succeeds, persist PATH changes: open ~/.bash_profile and add two lines: PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin and export PATH.

– hoefling
Nov 23 '18 at 11:43





PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin django-admin startproject firstdjango. if the command succeeds, persist PATH changes: open ~/.bash_profile and add two lines: PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin and export PATH.

– hoefling
Nov 23 '18 at 11:43




1




1





Why aren't you using a virtualenv?

– Daniel Roseman
Nov 23 '18 at 11:54





Why aren't you using a virtualenv?

– Daniel Roseman
Nov 23 '18 at 11:54













Tried that aswell, see the comments in answer below.

– bnc
Nov 23 '18 at 16:59





Tried that aswell, see the comments in answer below.

– bnc
Nov 23 '18 at 16:59












1 Answer
1






active

oldest

votes


















0















  1. create a Directory somewhere, lets name it "Django"

  2. cd to "Django" directory

  3. create virtualenv --> virtualenv django

  4. source django/bin/activate

  5. install django --> pip3 install django

  6. cd to created 'django' directory

  7. django-admin startproject first_project

  8. Enjoy!






share|improve this answer
























  • I tried also that, and it says in the pip3 installation part that: Collecting django Could not find a version that satisfies the requirement django (from versions: ) No matching distribution found for django

    – bnc
    Nov 23 '18 at 12:28











  • and if you do ' pip install django '(so without the 3)

    – NemoMeMeliorEst
    Nov 23 '18 at 12:32













  • other question, are you trying to install/download this from behind a corporate network, you could be having certificate issues.... what does this output: pip install -vvv django

    – NemoMeMeliorEst
    Nov 23 '18 at 12:38











  • pip install django provided the same result, could not find a version. With -vvv got a lot of errors. I'm not behind corporate network. This is one error: pip._vendor.requests.exceptions.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645)

    – bnc
    Nov 23 '18 at 16:34











  • On Unix the default configuration file is: $HOME/.config/pip/pip.conf which respects the XDG_CONFIG_HOME environment variable. On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf. On Windows the configuration file is %APPDATA%pippip.ini. then add this to config file: [global] trusted-host = pypi.python.org

    – NemoMeMeliorEst
    Nov 27 '18 at 9:00











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445932%2fdjango-is-installed-but-python3-does-not-find-it%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0















  1. create a Directory somewhere, lets name it "Django"

  2. cd to "Django" directory

  3. create virtualenv --> virtualenv django

  4. source django/bin/activate

  5. install django --> pip3 install django

  6. cd to created 'django' directory

  7. django-admin startproject first_project

  8. Enjoy!






share|improve this answer
























  • I tried also that, and it says in the pip3 installation part that: Collecting django Could not find a version that satisfies the requirement django (from versions: ) No matching distribution found for django

    – bnc
    Nov 23 '18 at 12:28











  • and if you do ' pip install django '(so without the 3)

    – NemoMeMeliorEst
    Nov 23 '18 at 12:32













  • other question, are you trying to install/download this from behind a corporate network, you could be having certificate issues.... what does this output: pip install -vvv django

    – NemoMeMeliorEst
    Nov 23 '18 at 12:38











  • pip install django provided the same result, could not find a version. With -vvv got a lot of errors. I'm not behind corporate network. This is one error: pip._vendor.requests.exceptions.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645)

    – bnc
    Nov 23 '18 at 16:34











  • On Unix the default configuration file is: $HOME/.config/pip/pip.conf which respects the XDG_CONFIG_HOME environment variable. On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf. On Windows the configuration file is %APPDATA%pippip.ini. then add this to config file: [global] trusted-host = pypi.python.org

    – NemoMeMeliorEst
    Nov 27 '18 at 9:00
















0















  1. create a Directory somewhere, lets name it "Django"

  2. cd to "Django" directory

  3. create virtualenv --> virtualenv django

  4. source django/bin/activate

  5. install django --> pip3 install django

  6. cd to created 'django' directory

  7. django-admin startproject first_project

  8. Enjoy!






share|improve this answer
























  • I tried also that, and it says in the pip3 installation part that: Collecting django Could not find a version that satisfies the requirement django (from versions: ) No matching distribution found for django

    – bnc
    Nov 23 '18 at 12:28











  • and if you do ' pip install django '(so without the 3)

    – NemoMeMeliorEst
    Nov 23 '18 at 12:32













  • other question, are you trying to install/download this from behind a corporate network, you could be having certificate issues.... what does this output: pip install -vvv django

    – NemoMeMeliorEst
    Nov 23 '18 at 12:38











  • pip install django provided the same result, could not find a version. With -vvv got a lot of errors. I'm not behind corporate network. This is one error: pip._vendor.requests.exceptions.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645)

    – bnc
    Nov 23 '18 at 16:34











  • On Unix the default configuration file is: $HOME/.config/pip/pip.conf which respects the XDG_CONFIG_HOME environment variable. On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf. On Windows the configuration file is %APPDATA%pippip.ini. then add this to config file: [global] trusted-host = pypi.python.org

    – NemoMeMeliorEst
    Nov 27 '18 at 9:00














0












0








0








  1. create a Directory somewhere, lets name it "Django"

  2. cd to "Django" directory

  3. create virtualenv --> virtualenv django

  4. source django/bin/activate

  5. install django --> pip3 install django

  6. cd to created 'django' directory

  7. django-admin startproject first_project

  8. Enjoy!






share|improve this answer














  1. create a Directory somewhere, lets name it "Django"

  2. cd to "Django" directory

  3. create virtualenv --> virtualenv django

  4. source django/bin/activate

  5. install django --> pip3 install django

  6. cd to created 'django' directory

  7. django-admin startproject first_project

  8. Enjoy!







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 23 '18 at 12:15









NemoMeMeliorEstNemoMeMeliorEst

1306




1306













  • I tried also that, and it says in the pip3 installation part that: Collecting django Could not find a version that satisfies the requirement django (from versions: ) No matching distribution found for django

    – bnc
    Nov 23 '18 at 12:28











  • and if you do ' pip install django '(so without the 3)

    – NemoMeMeliorEst
    Nov 23 '18 at 12:32













  • other question, are you trying to install/download this from behind a corporate network, you could be having certificate issues.... what does this output: pip install -vvv django

    – NemoMeMeliorEst
    Nov 23 '18 at 12:38











  • pip install django provided the same result, could not find a version. With -vvv got a lot of errors. I'm not behind corporate network. This is one error: pip._vendor.requests.exceptions.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645)

    – bnc
    Nov 23 '18 at 16:34











  • On Unix the default configuration file is: $HOME/.config/pip/pip.conf which respects the XDG_CONFIG_HOME environment variable. On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf. On Windows the configuration file is %APPDATA%pippip.ini. then add this to config file: [global] trusted-host = pypi.python.org

    – NemoMeMeliorEst
    Nov 27 '18 at 9:00



















  • I tried also that, and it says in the pip3 installation part that: Collecting django Could not find a version that satisfies the requirement django (from versions: ) No matching distribution found for django

    – bnc
    Nov 23 '18 at 12:28











  • and if you do ' pip install django '(so without the 3)

    – NemoMeMeliorEst
    Nov 23 '18 at 12:32













  • other question, are you trying to install/download this from behind a corporate network, you could be having certificate issues.... what does this output: pip install -vvv django

    – NemoMeMeliorEst
    Nov 23 '18 at 12:38











  • pip install django provided the same result, could not find a version. With -vvv got a lot of errors. I'm not behind corporate network. This is one error: pip._vendor.requests.exceptions.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645)

    – bnc
    Nov 23 '18 at 16:34











  • On Unix the default configuration file is: $HOME/.config/pip/pip.conf which respects the XDG_CONFIG_HOME environment variable. On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf. On Windows the configuration file is %APPDATA%pippip.ini. then add this to config file: [global] trusted-host = pypi.python.org

    – NemoMeMeliorEst
    Nov 27 '18 at 9:00

















I tried also that, and it says in the pip3 installation part that: Collecting django Could not find a version that satisfies the requirement django (from versions: ) No matching distribution found for django

– bnc
Nov 23 '18 at 12:28





I tried also that, and it says in the pip3 installation part that: Collecting django Could not find a version that satisfies the requirement django (from versions: ) No matching distribution found for django

– bnc
Nov 23 '18 at 12:28













and if you do ' pip install django '(so without the 3)

– NemoMeMeliorEst
Nov 23 '18 at 12:32







and if you do ' pip install django '(so without the 3)

– NemoMeMeliorEst
Nov 23 '18 at 12:32















other question, are you trying to install/download this from behind a corporate network, you could be having certificate issues.... what does this output: pip install -vvv django

– NemoMeMeliorEst
Nov 23 '18 at 12:38





other question, are you trying to install/download this from behind a corporate network, you could be having certificate issues.... what does this output: pip install -vvv django

– NemoMeMeliorEst
Nov 23 '18 at 12:38













pip install django provided the same result, could not find a version. With -vvv got a lot of errors. I'm not behind corporate network. This is one error: pip._vendor.requests.exceptions.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645)

– bnc
Nov 23 '18 at 16:34





pip install django provided the same result, could not find a version. With -vvv got a lot of errors. I'm not behind corporate network. This is one error: pip._vendor.requests.exceptions.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645)

– bnc
Nov 23 '18 at 16:34













On Unix the default configuration file is: $HOME/.config/pip/pip.conf which respects the XDG_CONFIG_HOME environment variable. On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf. On Windows the configuration file is %APPDATA%pippip.ini. then add this to config file: [global] trusted-host = pypi.python.org

– NemoMeMeliorEst
Nov 27 '18 at 9:00





On Unix the default configuration file is: $HOME/.config/pip/pip.conf which respects the XDG_CONFIG_HOME environment variable. On macOS the configuration file is $HOME/Library/Application Support/pip/pip.conf. On Windows the configuration file is %APPDATA%pippip.ini. then add this to config file: [global] trusted-host = pypi.python.org

– NemoMeMeliorEst
Nov 27 '18 at 9:00




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445932%2fdjango-is-installed-but-python3-does-not-find-it%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wiesbaden

Marschland

Dieringhausen