Installing packages to Anaconda Environments
I've been having an issue with Anaconda, on two separate Windows machines.
I've downloaded and installed Anaconda. I know the commands, how to install libraries, I've even installed tensorflow-gpu (which works). I also use Jupyter notebook and I'm quite familiar with it by this point.
The issue:
For some reason, when I create new environments and install libraries to that environment... it ALWAYS installs them to (base). Whenever I try to run code in a jupyter notebook that is located in an environment other than (base), it can't find any of the libraries I need... because it's installing them to (base) by default.
I always ensure that I've activated the correct environment before installing any libraries. But it doesn't seem to make a difference.
Can anyone help me with this... am I doing something wrong?
python anaconda
|
show 2 more comments
I've been having an issue with Anaconda, on two separate Windows machines.
I've downloaded and installed Anaconda. I know the commands, how to install libraries, I've even installed tensorflow-gpu (which works). I also use Jupyter notebook and I'm quite familiar with it by this point.
The issue:
For some reason, when I create new environments and install libraries to that environment... it ALWAYS installs them to (base). Whenever I try to run code in a jupyter notebook that is located in an environment other than (base), it can't find any of the libraries I need... because it's installing them to (base) by default.
I always ensure that I've activated the correct environment before installing any libraries. But it doesn't seem to make a difference.
Can anyone help me with this... am I doing something wrong?
python anaconda
are you using conda or pip to install packages? are you sure you're using the pip that is installed in your environment when installing? what commands are you using to do the install?
– Simon
Nov 15 '18 at 11:09
Have you created the environemnt in Command Prompt/Shell and followed this gist.github.com/arsho/3b71a89867a74fee776aa7806456e0fd ?
– arsho
Nov 15 '18 at 11:16
I've tried both the pip and conda install commands, but I'm still experiencing the same problem. All packages are installed to base, even after activating and environment. It's very odd.
– embedded.95
Nov 15 '18 at 11:50
1
please add the exact list of commands you use to reproduce your problem.... are you sure that your notebook is connected to the correct python environment? (i.e. report the output ofimport sys print(sys.executable)
)
– raphael
Nov 15 '18 at 12:03
I think you're onto something. My result is this: C:Usersxxxxanaconda3python.exe Doesn't seem to be pointing to my environment. How can I change this?
– embedded.95
Nov 15 '18 at 13:05
|
show 2 more comments
I've been having an issue with Anaconda, on two separate Windows machines.
I've downloaded and installed Anaconda. I know the commands, how to install libraries, I've even installed tensorflow-gpu (which works). I also use Jupyter notebook and I'm quite familiar with it by this point.
The issue:
For some reason, when I create new environments and install libraries to that environment... it ALWAYS installs them to (base). Whenever I try to run code in a jupyter notebook that is located in an environment other than (base), it can't find any of the libraries I need... because it's installing them to (base) by default.
I always ensure that I've activated the correct environment before installing any libraries. But it doesn't seem to make a difference.
Can anyone help me with this... am I doing something wrong?
python anaconda
I've been having an issue with Anaconda, on two separate Windows machines.
I've downloaded and installed Anaconda. I know the commands, how to install libraries, I've even installed tensorflow-gpu (which works). I also use Jupyter notebook and I'm quite familiar with it by this point.
The issue:
For some reason, when I create new environments and install libraries to that environment... it ALWAYS installs them to (base). Whenever I try to run code in a jupyter notebook that is located in an environment other than (base), it can't find any of the libraries I need... because it's installing them to (base) by default.
I always ensure that I've activated the correct environment before installing any libraries. But it doesn't seem to make a difference.
Can anyone help me with this... am I doing something wrong?
python anaconda
python anaconda
asked Nov 15 '18 at 11:02
embedded.95embedded.95
227
227
are you using conda or pip to install packages? are you sure you're using the pip that is installed in your environment when installing? what commands are you using to do the install?
– Simon
Nov 15 '18 at 11:09
Have you created the environemnt in Command Prompt/Shell and followed this gist.github.com/arsho/3b71a89867a74fee776aa7806456e0fd ?
– arsho
Nov 15 '18 at 11:16
I've tried both the pip and conda install commands, but I'm still experiencing the same problem. All packages are installed to base, even after activating and environment. It's very odd.
– embedded.95
Nov 15 '18 at 11:50
1
please add the exact list of commands you use to reproduce your problem.... are you sure that your notebook is connected to the correct python environment? (i.e. report the output ofimport sys print(sys.executable)
)
– raphael
Nov 15 '18 at 12:03
I think you're onto something. My result is this: C:Usersxxxxanaconda3python.exe Doesn't seem to be pointing to my environment. How can I change this?
– embedded.95
Nov 15 '18 at 13:05
|
show 2 more comments
are you using conda or pip to install packages? are you sure you're using the pip that is installed in your environment when installing? what commands are you using to do the install?
– Simon
Nov 15 '18 at 11:09
Have you created the environemnt in Command Prompt/Shell and followed this gist.github.com/arsho/3b71a89867a74fee776aa7806456e0fd ?
– arsho
Nov 15 '18 at 11:16
I've tried both the pip and conda install commands, but I'm still experiencing the same problem. All packages are installed to base, even after activating and environment. It's very odd.
– embedded.95
Nov 15 '18 at 11:50
1
please add the exact list of commands you use to reproduce your problem.... are you sure that your notebook is connected to the correct python environment? (i.e. report the output ofimport sys print(sys.executable)
)
– raphael
Nov 15 '18 at 12:03
I think you're onto something. My result is this: C:Usersxxxxanaconda3python.exe Doesn't seem to be pointing to my environment. How can I change this?
– embedded.95
Nov 15 '18 at 13:05
are you using conda or pip to install packages? are you sure you're using the pip that is installed in your environment when installing? what commands are you using to do the install?
– Simon
Nov 15 '18 at 11:09
are you using conda or pip to install packages? are you sure you're using the pip that is installed in your environment when installing? what commands are you using to do the install?
– Simon
Nov 15 '18 at 11:09
Have you created the environemnt in Command Prompt/Shell and followed this gist.github.com/arsho/3b71a89867a74fee776aa7806456e0fd ?
– arsho
Nov 15 '18 at 11:16
Have you created the environemnt in Command Prompt/Shell and followed this gist.github.com/arsho/3b71a89867a74fee776aa7806456e0fd ?
– arsho
Nov 15 '18 at 11:16
I've tried both the pip and conda install commands, but I'm still experiencing the same problem. All packages are installed to base, even after activating and environment. It's very odd.
– embedded.95
Nov 15 '18 at 11:50
I've tried both the pip and conda install commands, but I'm still experiencing the same problem. All packages are installed to base, even after activating and environment. It's very odd.
– embedded.95
Nov 15 '18 at 11:50
1
1
please add the exact list of commands you use to reproduce your problem.... are you sure that your notebook is connected to the correct python environment? (i.e. report the output of
import sys print(sys.executable)
)– raphael
Nov 15 '18 at 12:03
please add the exact list of commands you use to reproduce your problem.... are you sure that your notebook is connected to the correct python environment? (i.e. report the output of
import sys print(sys.executable)
)– raphael
Nov 15 '18 at 12:03
I think you're onto something. My result is this: C:Usersxxxxanaconda3python.exe Doesn't seem to be pointing to my environment. How can I change this?
– embedded.95
Nov 15 '18 at 13:05
I think you're onto something. My result is this: C:Usersxxxxanaconda3python.exe Doesn't seem to be pointing to my environment. How can I change this?
– embedded.95
Nov 15 '18 at 13:05
|
show 2 more comments
1 Answer
1
active
oldest
votes
Kind of fixed my problem. It is to do with launching Jupyter notebook.
After switching environment via command prompt... the command 'jupyter notebook' runs jupyter notebook via the default python environment, regardless.
However, if I switch environments via anaconda navigator and launch jupyter notebook from there, it works perfectly.
Maybe I'm missing a command via the prompt?
again if you don't tell the commands you are using, it's hard to tell if they are correct
– raphael
Nov 15 '18 at 14:31
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%2f53318001%2finstalling-packages-to-anaconda-environments%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
Kind of fixed my problem. It is to do with launching Jupyter notebook.
After switching environment via command prompt... the command 'jupyter notebook' runs jupyter notebook via the default python environment, regardless.
However, if I switch environments via anaconda navigator and launch jupyter notebook from there, it works perfectly.
Maybe I'm missing a command via the prompt?
again if you don't tell the commands you are using, it's hard to tell if they are correct
– raphael
Nov 15 '18 at 14:31
add a comment |
Kind of fixed my problem. It is to do with launching Jupyter notebook.
After switching environment via command prompt... the command 'jupyter notebook' runs jupyter notebook via the default python environment, regardless.
However, if I switch environments via anaconda navigator and launch jupyter notebook from there, it works perfectly.
Maybe I'm missing a command via the prompt?
again if you don't tell the commands you are using, it's hard to tell if they are correct
– raphael
Nov 15 '18 at 14:31
add a comment |
Kind of fixed my problem. It is to do with launching Jupyter notebook.
After switching environment via command prompt... the command 'jupyter notebook' runs jupyter notebook via the default python environment, regardless.
However, if I switch environments via anaconda navigator and launch jupyter notebook from there, it works perfectly.
Maybe I'm missing a command via the prompt?
Kind of fixed my problem. It is to do with launching Jupyter notebook.
After switching environment via command prompt... the command 'jupyter notebook' runs jupyter notebook via the default python environment, regardless.
However, if I switch environments via anaconda navigator and launch jupyter notebook from there, it works perfectly.
Maybe I'm missing a command via the prompt?
answered Nov 15 '18 at 13:52
embedded.95embedded.95
227
227
again if you don't tell the commands you are using, it's hard to tell if they are correct
– raphael
Nov 15 '18 at 14:31
add a comment |
again if you don't tell the commands you are using, it's hard to tell if they are correct
– raphael
Nov 15 '18 at 14:31
again if you don't tell the commands you are using, it's hard to tell if they are correct
– raphael
Nov 15 '18 at 14:31
again if you don't tell the commands you are using, it's hard to tell if they are correct
– raphael
Nov 15 '18 at 14:31
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.
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%2f53318001%2finstalling-packages-to-anaconda-environments%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
are you using conda or pip to install packages? are you sure you're using the pip that is installed in your environment when installing? what commands are you using to do the install?
– Simon
Nov 15 '18 at 11:09
Have you created the environemnt in Command Prompt/Shell and followed this gist.github.com/arsho/3b71a89867a74fee776aa7806456e0fd ?
– arsho
Nov 15 '18 at 11:16
I've tried both the pip and conda install commands, but I'm still experiencing the same problem. All packages are installed to base, even after activating and environment. It's very odd.
– embedded.95
Nov 15 '18 at 11:50
1
please add the exact list of commands you use to reproduce your problem.... are you sure that your notebook is connected to the correct python environment? (i.e. report the output of
import sys print(sys.executable)
)– raphael
Nov 15 '18 at 12:03
I think you're onto something. My result is this: C:Usersxxxxanaconda3python.exe Doesn't seem to be pointing to my environment. How can I change this?
– embedded.95
Nov 15 '18 at 13:05