Django is installed but python3 does not find it
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
add a comment |
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
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, persistPATH
changes: open~/.bash_profile
and add two lines:PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin
andexport 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
add a comment |
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
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
python django python-3.x
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, persistPATH
changes: open~/.bash_profile
and add two lines:PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin
andexport 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
add a comment |
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, persistPATH
changes: open~/.bash_profile
and add two lines:PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin
andexport 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
add a comment |
1 Answer
1
active
oldest
votes
- create a Directory somewhere, lets name it "Django"
- cd to "Django" directory
- create virtualenv --> virtualenv django
- source django/bin/activate
- install django --> pip3 install django
- cd to created 'django' directory
- django-admin startproject first_project
- Enjoy!
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
- create a Directory somewhere, lets name it "Django"
- cd to "Django" directory
- create virtualenv --> virtualenv django
- source django/bin/activate
- install django --> pip3 install django
- cd to created 'django' directory
- django-admin startproject first_project
- Enjoy!
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
add a comment |
- create a Directory somewhere, lets name it "Django"
- cd to "Django" directory
- create virtualenv --> virtualenv django
- source django/bin/activate
- install django --> pip3 install django
- cd to created 'django' directory
- django-admin startproject first_project
- Enjoy!
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
add a comment |
- create a Directory somewhere, lets name it "Django"
- cd to "Django" directory
- create virtualenv --> virtualenv django
- source django/bin/activate
- install django --> pip3 install django
- cd to created 'django' directory
- django-admin startproject first_project
- Enjoy!
- create a Directory somewhere, lets name it "Django"
- cd to "Django" directory
- create virtualenv --> virtualenv django
- source django/bin/activate
- install django --> pip3 install django
- cd to created 'django' directory
- django-admin startproject first_project
- Enjoy!
answered Nov 23 '18 at 12:15
NemoMeMeliorEstNemoMeMeliorEst
175
175
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
add a comment |
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
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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, persistPATH
changes: open~/.bash_profile
and add two lines:PATH=$PATH:/Library/Frameworks/Python.framework/Versions/3.5/bin
andexport 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