0

The PyPy docs mention creating a symlink to allow pypy to be used globally, but I can't seem to figure out how to do it.

I currently have this command: mklink \pypy C:\pypy

However, it keeps coming up with an error saying Access is denied.. Any idea as to how I could fix this and get it working? Despite it being brought up in the PyPy docs, there's no mention of how to actually do it.

PyPy itself is contained in C:\pypy

dantdj
  • 1,237
  • 3
  • 19
  • 40

2 Answers2

1

From the file paths, I am actually assuming that you are working on Windows.

The advice you actually read (here) applies to Linux. That's why you can not do that in Windows.

Also please not that \pypy is not a valid option for the windows mklink program.

NlightNFotis
  • 9,559
  • 5
  • 43
  • 66
  • Is there any way that it can be done, then? Maybe adding it to environment variables or something? – dantdj Feb 05 '13 at 17:36
  • @dantdj why would you like to do that? It is already universally available on windows. Do you mean that you want it to be the default python implementation that handles python files in windows? – NlightNFotis Feb 05 '13 at 18:19
  • My install didn't let me type `pypy script.py` in commmand line and let it run. But I added it to my path and now I can, so no worries. – dantdj Feb 05 '13 at 23:15
  • @dantdj if that answer helped you, please mark it as accepted so that future readers can see that it solved your problem. – NlightNFotis Feb 05 '13 at 23:53
  • 1
    The link 404's - please add some content from the linked page for reference. – tread Jan 10 '23 at 13:30
0

For linux, download the tar.bz2 file from https://www.pypy.org/download.html, unpack it and then:

sudo ln -s /path/to/pypy/download/folder /usr/local/bin/pypy
Rexcirus
  • 2,459
  • 3
  • 22
  • 42