Installing packages to Anaconda Environments












0















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?










share|improve this question























  • 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
















0















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?










share|improve this question























  • 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














0












0








0








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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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 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



















  • 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

















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












1 Answer
1






active

oldest

votes


















0














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?






share|improve this answer
























  • 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











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%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









0














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?






share|improve this answer
























  • 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
















0














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?






share|improve this answer
























  • 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














0












0








0







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?






share|improve this answer













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?







share|improve this answer












share|improve this answer



share|improve this answer










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



















  • 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




















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%2f53318001%2finstalling-packages-to-anaconda-environments%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

Xamarin.iOS Cant Deploy on Iphone

Glorious Revolution

Dulmage-Mendelsohn matrix decomposition in Python