|
|
This is one way to get PyPy to work in VS Code on windows.
|
|
|
|
|
|
1. download the zip file, and extract it somewhere. Explorer suggests `C:\Users\matti\Documents\pypy3.6-v7.3.1-win32` for me, that is fine.
|
|
|
2. Next set up the new PyPy interpreter by getting `pip` and `setuptools` installed. Click on Start and type "cmd" then click on "Comand Prompt" to open a text terminal. Once there type `<path\to\pypy> -m ensurepip`, so for me that would be `C:\Users\matti\Documents\pypy3.6-v7.3.1-win32\pypy3.6-v7.3.1-win32\pypy3.exe -m ensurepip` which should print at the end `Successfully installed pip-20.0.2 setuptools-44.0.0`
|
|
|
3. Open a new file in VS Code, and click on the "Python" at the far left of the status bar (bottom left corner in my default VSCode layout), and choose the path to `pypy3.exe` as the one to use for this file.
|
|
|
|
|
|
I think that is it? You may want to let VS Code install things like a linter or other tools, that is fine.
|
|
|
|
|
|
PyPy is also available [via Conda](https://conda-forge.org/blog/posts/2020-03-10-pypy), which will allow you to `conda install` NumPy and SciPy without compiling. matplotlib should be available soon. |
|
|
\ No newline at end of file |