Comments (5)
Hi!
To install pip, run
pypy3 -m ensurepip
and to use it:
$ pypy3 -m pip install requests
# Collecting ...
$ pypy3 -c "import requests; print(requests)"
# <module 'requests' from '.../miniconda3/envs/pypy/site-packages/requests/__init__.py'>
Note that you might want to install an environment with only pypy3
, to avoid mistakes (like installing something with CPython's pip).
from pypy3.5-feedstock.
pypy3 -m ensurepip
Thank you, this worked 👍.
Note that you might want to install an environment with only
pypy3
, to avoid mistakes (like installing something with CPython's pip).
How can this be done? I created the env using conda create --name envname_pypy35 pypy3.5
but apparently python3.7 was also installed. Is that expected?
from pypy3.5-feedstock.
Installing dependencies from conda seems to have the same issue.
$ conda activate pycalver_pypy35
(pycalver_pypy35) $ conda install pytest
Solving environment: done
...
## Package Plan ##
added / updated specs:
- pytest
The following packages will be downloaded:
package | build
---------------------------|-----------------
pytest-4.2.0 | py37_0 341 KB
ca-certificates-2019.1.23 | 0 126 KB
openssl-1.0.2p | h14c3975_0 3.5 MB
------------------------------------------------------------
Total: 3.9 MB
...
Executing transaction: done
$ which pypy3
/home/mbarkhau/miniconda3/envs/pycalver_pypy35/bin/pypy3
$ pypy3 -m pytest
/home/mbarkhau/miniconda3/envs/pycalver_pypy35/bin/pypy3: No module named pytest
I think I must be misunderstanding how all of this is supposed to work.
from pypy3.5-feedstock.
Right now conda doesn't support non-CPython interpreters, which means that you can't use conda install
to install pypy deps (so you have to use pip
).
It also makes sense, because conda pre-compiles most dependencies and this would force them to also compile everything against pypy.
To create a 'clean' conda env, just do:
$ conda create -n test
# ...
$ source activate test
$ which python
/usr/bin/python # AKA no python in the env.
$ conda install -c conda-forge pypy3.5
...
from pypy3.5-feedstock.
That's understandable and thanks for the help.
from pypy3.5-feedstock.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pypy3.5-feedstock.