Conda doesn't show package installed using pip










0














I am following this guide here,



https://spinningup.openai.com/en/latest/user/installation.html



conda create -n spinningup python=3.6

source activate spinningup

git clone https://github.com/openai/spinningup.git

cd spinningup

pip install -e .


And I get the following error:
enter image description here



I have overriden that error by



export PIP_REQUIRE_VIRTUALENV=false


But the none of the installed packages are not shown in the conda package list, it appears the packages are installed on the main python environment, not conda environment?



Installed dependencies not shown



which pip


does point to correct conda pip directory however.



enter image description here
Pip list shows gym is installed, but when I open juptyer lab from this same terminal :



enter image description here



According to this link:




Most of the time (with some exceptions) there isn’t much of a difference between installing packages through conda or through pip. This is because pip packages are also installable into Conda environments.




It should have been installed into conda env I have created, but why isn't this working?



How can I fix this?
I wish to install everything specified in this spinningup requirement.txt on conda env, like the guide suggested.



Many thanks in advance.










share|improve this question























  • did you check this? stackoverflow.com/questions/16460313/… .
    – Manoj Kengudelu
    Nov 12 '18 at 17:30










  • Yes, that is the exactly why I mention "setting PIP_REQUIRE_VIRTUALENV=false" here. If I do that, it installs in the main Python environment, not Conda environment. I want these dependencies to be installed in Conda env like the guide suggested.
    – zcahfg2
    Nov 12 '18 at 17:57







  • 1




    What version of conda are you using? source activate is quite old; you should be using conda activate.
    – BallpointBen
    Nov 12 '18 at 21:00






  • 1




    As for the actual issue you're facing, you probably need to conda install pip into the active environment so that pip refers to that environment's pip, not the system pip.
    – BallpointBen
    Nov 12 '18 at 21:01










  • I am using the latest version of conda. Thank you for conda activate tip. 'which pip' already points to /anaconda3/envs/spinningup/bin/pip so this isn't the issue..
    – zcahfg2
    Nov 12 '18 at 21:06















0














I am following this guide here,



https://spinningup.openai.com/en/latest/user/installation.html



conda create -n spinningup python=3.6

source activate spinningup

git clone https://github.com/openai/spinningup.git

cd spinningup

pip install -e .


And I get the following error:
enter image description here



I have overriden that error by



export PIP_REQUIRE_VIRTUALENV=false


But the none of the installed packages are not shown in the conda package list, it appears the packages are installed on the main python environment, not conda environment?



Installed dependencies not shown



which pip


does point to correct conda pip directory however.



enter image description here
Pip list shows gym is installed, but when I open juptyer lab from this same terminal :



enter image description here



According to this link:




Most of the time (with some exceptions) there isn’t much of a difference between installing packages through conda or through pip. This is because pip packages are also installable into Conda environments.




It should have been installed into conda env I have created, but why isn't this working?



How can I fix this?
I wish to install everything specified in this spinningup requirement.txt on conda env, like the guide suggested.



Many thanks in advance.










share|improve this question























  • did you check this? stackoverflow.com/questions/16460313/… .
    – Manoj Kengudelu
    Nov 12 '18 at 17:30










  • Yes, that is the exactly why I mention "setting PIP_REQUIRE_VIRTUALENV=false" here. If I do that, it installs in the main Python environment, not Conda environment. I want these dependencies to be installed in Conda env like the guide suggested.
    – zcahfg2
    Nov 12 '18 at 17:57







  • 1




    What version of conda are you using? source activate is quite old; you should be using conda activate.
    – BallpointBen
    Nov 12 '18 at 21:00






  • 1




    As for the actual issue you're facing, you probably need to conda install pip into the active environment so that pip refers to that environment's pip, not the system pip.
    – BallpointBen
    Nov 12 '18 at 21:01










  • I am using the latest version of conda. Thank you for conda activate tip. 'which pip' already points to /anaconda3/envs/spinningup/bin/pip so this isn't the issue..
    – zcahfg2
    Nov 12 '18 at 21:06













0












0








0







I am following this guide here,



https://spinningup.openai.com/en/latest/user/installation.html



conda create -n spinningup python=3.6

source activate spinningup

git clone https://github.com/openai/spinningup.git

cd spinningup

pip install -e .


And I get the following error:
enter image description here



I have overriden that error by



export PIP_REQUIRE_VIRTUALENV=false


But the none of the installed packages are not shown in the conda package list, it appears the packages are installed on the main python environment, not conda environment?



Installed dependencies not shown



which pip


does point to correct conda pip directory however.



enter image description here
Pip list shows gym is installed, but when I open juptyer lab from this same terminal :



enter image description here



According to this link:




Most of the time (with some exceptions) there isn’t much of a difference between installing packages through conda or through pip. This is because pip packages are also installable into Conda environments.




It should have been installed into conda env I have created, but why isn't this working?



How can I fix this?
I wish to install everything specified in this spinningup requirement.txt on conda env, like the guide suggested.



Many thanks in advance.










share|improve this question















I am following this guide here,



https://spinningup.openai.com/en/latest/user/installation.html



conda create -n spinningup python=3.6

source activate spinningup

git clone https://github.com/openai/spinningup.git

cd spinningup

pip install -e .


And I get the following error:
enter image description here



I have overriden that error by



export PIP_REQUIRE_VIRTUALENV=false


But the none of the installed packages are not shown in the conda package list, it appears the packages are installed on the main python environment, not conda environment?



Installed dependencies not shown



which pip


does point to correct conda pip directory however.



enter image description here
Pip list shows gym is installed, but when I open juptyer lab from this same terminal :



enter image description here



According to this link:




Most of the time (with some exceptions) there isn’t much of a difference between installing packages through conda or through pip. This is because pip packages are also installable into Conda environments.




It should have been installed into conda env I have created, but why isn't this working?



How can I fix this?
I wish to install everything specified in this spinningup requirement.txt on conda env, like the guide suggested.



Many thanks in advance.







python anaconda virtualenv conda






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 '18 at 21:27

























asked Nov 12 '18 at 17:16









zcahfg2

247312




247312











  • did you check this? stackoverflow.com/questions/16460313/… .
    – Manoj Kengudelu
    Nov 12 '18 at 17:30










  • Yes, that is the exactly why I mention "setting PIP_REQUIRE_VIRTUALENV=false" here. If I do that, it installs in the main Python environment, not Conda environment. I want these dependencies to be installed in Conda env like the guide suggested.
    – zcahfg2
    Nov 12 '18 at 17:57







  • 1




    What version of conda are you using? source activate is quite old; you should be using conda activate.
    – BallpointBen
    Nov 12 '18 at 21:00






  • 1




    As for the actual issue you're facing, you probably need to conda install pip into the active environment so that pip refers to that environment's pip, not the system pip.
    – BallpointBen
    Nov 12 '18 at 21:01










  • I am using the latest version of conda. Thank you for conda activate tip. 'which pip' already points to /anaconda3/envs/spinningup/bin/pip so this isn't the issue..
    – zcahfg2
    Nov 12 '18 at 21:06
















  • did you check this? stackoverflow.com/questions/16460313/… .
    – Manoj Kengudelu
    Nov 12 '18 at 17:30










  • Yes, that is the exactly why I mention "setting PIP_REQUIRE_VIRTUALENV=false" here. If I do that, it installs in the main Python environment, not Conda environment. I want these dependencies to be installed in Conda env like the guide suggested.
    – zcahfg2
    Nov 12 '18 at 17:57







  • 1




    What version of conda are you using? source activate is quite old; you should be using conda activate.
    – BallpointBen
    Nov 12 '18 at 21:00






  • 1




    As for the actual issue you're facing, you probably need to conda install pip into the active environment so that pip refers to that environment's pip, not the system pip.
    – BallpointBen
    Nov 12 '18 at 21:01










  • I am using the latest version of conda. Thank you for conda activate tip. 'which pip' already points to /anaconda3/envs/spinningup/bin/pip so this isn't the issue..
    – zcahfg2
    Nov 12 '18 at 21:06















did you check this? stackoverflow.com/questions/16460313/… .
– Manoj Kengudelu
Nov 12 '18 at 17:30




did you check this? stackoverflow.com/questions/16460313/… .
– Manoj Kengudelu
Nov 12 '18 at 17:30












Yes, that is the exactly why I mention "setting PIP_REQUIRE_VIRTUALENV=false" here. If I do that, it installs in the main Python environment, not Conda environment. I want these dependencies to be installed in Conda env like the guide suggested.
– zcahfg2
Nov 12 '18 at 17:57





Yes, that is the exactly why I mention "setting PIP_REQUIRE_VIRTUALENV=false" here. If I do that, it installs in the main Python environment, not Conda environment. I want these dependencies to be installed in Conda env like the guide suggested.
– zcahfg2
Nov 12 '18 at 17:57





1




1




What version of conda are you using? source activate is quite old; you should be using conda activate.
– BallpointBen
Nov 12 '18 at 21:00




What version of conda are you using? source activate is quite old; you should be using conda activate.
– BallpointBen
Nov 12 '18 at 21:00




1




1




As for the actual issue you're facing, you probably need to conda install pip into the active environment so that pip refers to that environment's pip, not the system pip.
– BallpointBen
Nov 12 '18 at 21:01




As for the actual issue you're facing, you probably need to conda install pip into the active environment so that pip refers to that environment's pip, not the system pip.
– BallpointBen
Nov 12 '18 at 21:01












I am using the latest version of conda. Thank you for conda activate tip. 'which pip' already points to /anaconda3/envs/spinningup/bin/pip so this isn't the issue..
– zcahfg2
Nov 12 '18 at 21:06




I am using the latest version of conda. Thank you for conda activate tip. 'which pip' already points to /anaconda3/envs/spinningup/bin/pip so this isn't the issue..
– zcahfg2
Nov 12 '18 at 21:06

















active

oldest

votes











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%2f53267063%2fconda-doesnt-show-package-installed-using-pip%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















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.





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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53267063%2fconda-doesnt-show-package-installed-using-pip%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







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

Museum of Modern and Contemporary Art of Trento and Rovereto