How to create a Conda environment that uses PyPy?










1















So here is my issue. I've managed to install PyPy using conda with the following command:



conda install -c conda-forge pypy3.5


Unfortunately, when I try to create an environment that uses this pypy3 exectuable, I cannot find a way to do it. If I run pypy3, I get the PyPy shell without any issue and I can also run my programs using pypy3 instead of python.



Though now, I'd like to be able to create a full environment using PyPy if that's possible. I've tried things like the following in vain:



conda create -n pypy3 python=pypy3
conda create -n pypy3 python=pypy3 -c conda-forge


I've tried specifying pypy3.5, and other variations but nothing works.
I can see the pypy3 executable in the bins of my Miniconda installation but I cannot find a way for Conda to use it. I cannot find much on the internet on this since people seem to be asking just for the install of PyPy via Conda, and nothing about creating environments using PyPy.



So here are my questions:



  • Is there already a way to create a Conda environment using PyPy instead of a regular CPython?

  • Is there a way to force Conda to look first locally instead of checking online for distributions?

  • Is there a way to enforce an executable to use as Python when we create an environment with Conda?

  • Would there be a dirty workaround possible creating a regular environment and then forcing this environment to point to my pypy3 executable?

I don't know if anybody can help here. Maybe the solution already exists but I couldn't find much on the subject anyway.



EDIT: As suggested by @darthbith I can use the following command:



conda create -n pypy3 -c conda-forge pypy3.5


But that doesn't do what I would expect. I can use pypy3 to get the shell and execute my Python programs but it is not handled as a regular Python version. I'd like to have PyPy to be considered like any version of Python and be able to use pip to install packages (most pure Python packages should work with PyPy).



I understand that a lot of people would advise against what I'm trying to do here, but I see it as just being a faster version of Python that works for anything that doesn't rely on C libraries. Since I'm working on pure Python libraries and many libraries in PyPi are written in pure Python, I don't see why I wouldn't be able to achieve what I'm trying to do here.










share|improve this question
























  • Silly comment (on Windows so can't test much atm), but if you replace the Anaconda python executable with the pypy one, what happens?

    – Evan
    Nov 12 '18 at 17:33






  • 1





    Seems like conda create -n pypy3 -c conda-forge pypy3.5 would work. You're trying to give a version for the python package, which conda doesn't know what to do with

    – darthbith
    Nov 12 '18 at 20:46











  • Thanks for the command @darthbith. It does create an environment with PyPy into it BUT it doesn't help here since I have to specify pypy3 instead of Python and pip install packages but those are not seen by my PyPy. While I understand my question is ambiguous, I'm basically trying to get PyPy to be seen as a regular version of Python. I want to do this because PyPy should work with most pure Python packages. I'd like to be able to use it when I don't do anything fancy basically. I'll edit my question to make that clearer.

    – Bastien
    Nov 14 '18 at 14:13















1















So here is my issue. I've managed to install PyPy using conda with the following command:



conda install -c conda-forge pypy3.5


Unfortunately, when I try to create an environment that uses this pypy3 exectuable, I cannot find a way to do it. If I run pypy3, I get the PyPy shell without any issue and I can also run my programs using pypy3 instead of python.



Though now, I'd like to be able to create a full environment using PyPy if that's possible. I've tried things like the following in vain:



conda create -n pypy3 python=pypy3
conda create -n pypy3 python=pypy3 -c conda-forge


I've tried specifying pypy3.5, and other variations but nothing works.
I can see the pypy3 executable in the bins of my Miniconda installation but I cannot find a way for Conda to use it. I cannot find much on the internet on this since people seem to be asking just for the install of PyPy via Conda, and nothing about creating environments using PyPy.



So here are my questions:



  • Is there already a way to create a Conda environment using PyPy instead of a regular CPython?

  • Is there a way to force Conda to look first locally instead of checking online for distributions?

  • Is there a way to enforce an executable to use as Python when we create an environment with Conda?

  • Would there be a dirty workaround possible creating a regular environment and then forcing this environment to point to my pypy3 executable?

I don't know if anybody can help here. Maybe the solution already exists but I couldn't find much on the subject anyway.



EDIT: As suggested by @darthbith I can use the following command:



conda create -n pypy3 -c conda-forge pypy3.5


But that doesn't do what I would expect. I can use pypy3 to get the shell and execute my Python programs but it is not handled as a regular Python version. I'd like to have PyPy to be considered like any version of Python and be able to use pip to install packages (most pure Python packages should work with PyPy).



I understand that a lot of people would advise against what I'm trying to do here, but I see it as just being a faster version of Python that works for anything that doesn't rely on C libraries. Since I'm working on pure Python libraries and many libraries in PyPi are written in pure Python, I don't see why I wouldn't be able to achieve what I'm trying to do here.










share|improve this question
























  • Silly comment (on Windows so can't test much atm), but if you replace the Anaconda python executable with the pypy one, what happens?

    – Evan
    Nov 12 '18 at 17:33






  • 1





    Seems like conda create -n pypy3 -c conda-forge pypy3.5 would work. You're trying to give a version for the python package, which conda doesn't know what to do with

    – darthbith
    Nov 12 '18 at 20:46











  • Thanks for the command @darthbith. It does create an environment with PyPy into it BUT it doesn't help here since I have to specify pypy3 instead of Python and pip install packages but those are not seen by my PyPy. While I understand my question is ambiguous, I'm basically trying to get PyPy to be seen as a regular version of Python. I want to do this because PyPy should work with most pure Python packages. I'd like to be able to use it when I don't do anything fancy basically. I'll edit my question to make that clearer.

    – Bastien
    Nov 14 '18 at 14:13













1












1








1








So here is my issue. I've managed to install PyPy using conda with the following command:



conda install -c conda-forge pypy3.5


Unfortunately, when I try to create an environment that uses this pypy3 exectuable, I cannot find a way to do it. If I run pypy3, I get the PyPy shell without any issue and I can also run my programs using pypy3 instead of python.



Though now, I'd like to be able to create a full environment using PyPy if that's possible. I've tried things like the following in vain:



conda create -n pypy3 python=pypy3
conda create -n pypy3 python=pypy3 -c conda-forge


I've tried specifying pypy3.5, and other variations but nothing works.
I can see the pypy3 executable in the bins of my Miniconda installation but I cannot find a way for Conda to use it. I cannot find much on the internet on this since people seem to be asking just for the install of PyPy via Conda, and nothing about creating environments using PyPy.



So here are my questions:



  • Is there already a way to create a Conda environment using PyPy instead of a regular CPython?

  • Is there a way to force Conda to look first locally instead of checking online for distributions?

  • Is there a way to enforce an executable to use as Python when we create an environment with Conda?

  • Would there be a dirty workaround possible creating a regular environment and then forcing this environment to point to my pypy3 executable?

I don't know if anybody can help here. Maybe the solution already exists but I couldn't find much on the subject anyway.



EDIT: As suggested by @darthbith I can use the following command:



conda create -n pypy3 -c conda-forge pypy3.5


But that doesn't do what I would expect. I can use pypy3 to get the shell and execute my Python programs but it is not handled as a regular Python version. I'd like to have PyPy to be considered like any version of Python and be able to use pip to install packages (most pure Python packages should work with PyPy).



I understand that a lot of people would advise against what I'm trying to do here, but I see it as just being a faster version of Python that works for anything that doesn't rely on C libraries. Since I'm working on pure Python libraries and many libraries in PyPi are written in pure Python, I don't see why I wouldn't be able to achieve what I'm trying to do here.










share|improve this question
















So here is my issue. I've managed to install PyPy using conda with the following command:



conda install -c conda-forge pypy3.5


Unfortunately, when I try to create an environment that uses this pypy3 exectuable, I cannot find a way to do it. If I run pypy3, I get the PyPy shell without any issue and I can also run my programs using pypy3 instead of python.



Though now, I'd like to be able to create a full environment using PyPy if that's possible. I've tried things like the following in vain:



conda create -n pypy3 python=pypy3
conda create -n pypy3 python=pypy3 -c conda-forge


I've tried specifying pypy3.5, and other variations but nothing works.
I can see the pypy3 executable in the bins of my Miniconda installation but I cannot find a way for Conda to use it. I cannot find much on the internet on this since people seem to be asking just for the install of PyPy via Conda, and nothing about creating environments using PyPy.



So here are my questions:



  • Is there already a way to create a Conda environment using PyPy instead of a regular CPython?

  • Is there a way to force Conda to look first locally instead of checking online for distributions?

  • Is there a way to enforce an executable to use as Python when we create an environment with Conda?

  • Would there be a dirty workaround possible creating a regular environment and then forcing this environment to point to my pypy3 executable?

I don't know if anybody can help here. Maybe the solution already exists but I couldn't find much on the subject anyway.



EDIT: As suggested by @darthbith I can use the following command:



conda create -n pypy3 -c conda-forge pypy3.5


But that doesn't do what I would expect. I can use pypy3 to get the shell and execute my Python programs but it is not handled as a regular Python version. I'd like to have PyPy to be considered like any version of Python and be able to use pip to install packages (most pure Python packages should work with PyPy).



I understand that a lot of people would advise against what I'm trying to do here, but I see it as just being a faster version of Python that works for anything that doesn't rely on C libraries. Since I'm working on pure Python libraries and many libraries in PyPi are written in pure Python, I don't see why I wouldn't be able to achieve what I'm trying to do here.







python conda pypy






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 14:19







Bastien

















asked Nov 12 '18 at 17:06









BastienBastien

193




193












  • Silly comment (on Windows so can't test much atm), but if you replace the Anaconda python executable with the pypy one, what happens?

    – Evan
    Nov 12 '18 at 17:33






  • 1





    Seems like conda create -n pypy3 -c conda-forge pypy3.5 would work. You're trying to give a version for the python package, which conda doesn't know what to do with

    – darthbith
    Nov 12 '18 at 20:46











  • Thanks for the command @darthbith. It does create an environment with PyPy into it BUT it doesn't help here since I have to specify pypy3 instead of Python and pip install packages but those are not seen by my PyPy. While I understand my question is ambiguous, I'm basically trying to get PyPy to be seen as a regular version of Python. I want to do this because PyPy should work with most pure Python packages. I'd like to be able to use it when I don't do anything fancy basically. I'll edit my question to make that clearer.

    – Bastien
    Nov 14 '18 at 14:13

















  • Silly comment (on Windows so can't test much atm), but if you replace the Anaconda python executable with the pypy one, what happens?

    – Evan
    Nov 12 '18 at 17:33






  • 1





    Seems like conda create -n pypy3 -c conda-forge pypy3.5 would work. You're trying to give a version for the python package, which conda doesn't know what to do with

    – darthbith
    Nov 12 '18 at 20:46











  • Thanks for the command @darthbith. It does create an environment with PyPy into it BUT it doesn't help here since I have to specify pypy3 instead of Python and pip install packages but those are not seen by my PyPy. While I understand my question is ambiguous, I'm basically trying to get PyPy to be seen as a regular version of Python. I want to do this because PyPy should work with most pure Python packages. I'd like to be able to use it when I don't do anything fancy basically. I'll edit my question to make that clearer.

    – Bastien
    Nov 14 '18 at 14:13
















Silly comment (on Windows so can't test much atm), but if you replace the Anaconda python executable with the pypy one, what happens?

– Evan
Nov 12 '18 at 17:33





Silly comment (on Windows so can't test much atm), but if you replace the Anaconda python executable with the pypy one, what happens?

– Evan
Nov 12 '18 at 17:33




1




1





Seems like conda create -n pypy3 -c conda-forge pypy3.5 would work. You're trying to give a version for the python package, which conda doesn't know what to do with

– darthbith
Nov 12 '18 at 20:46





Seems like conda create -n pypy3 -c conda-forge pypy3.5 would work. You're trying to give a version for the python package, which conda doesn't know what to do with

– darthbith
Nov 12 '18 at 20:46













Thanks for the command @darthbith. It does create an environment with PyPy into it BUT it doesn't help here since I have to specify pypy3 instead of Python and pip install packages but those are not seen by my PyPy. While I understand my question is ambiguous, I'm basically trying to get PyPy to be seen as a regular version of Python. I want to do this because PyPy should work with most pure Python packages. I'd like to be able to use it when I don't do anything fancy basically. I'll edit my question to make that clearer.

– Bastien
Nov 14 '18 at 14:13





Thanks for the command @darthbith. It does create an environment with PyPy into it BUT it doesn't help here since I have to specify pypy3 instead of Python and pip install packages but those are not seen by my PyPy. While I understand my question is ambiguous, I'm basically trying to get PyPy to be seen as a regular version of Python. I want to do this because PyPy should work with most pure Python packages. I'd like to be able to use it when I don't do anything fancy basically. I'll edit my question to make that clearer.

– Bastien
Nov 14 '18 at 14:13












0






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%2f53266913%2fhow-to-create-a-conda-environment-that-uses-pypy%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266913%2fhow-to-create-a-conda-environment-that-uses-pypy%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

How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

Syphilis

Darth Vader #20