'pyodide' This package does not appear to be installable #1184
Replies: 3 comments 2 replies
-
Hello @ChinaGodzilla as the exception says, pyodide runs in the browser so it cannot be installed with pypi. Pyodide is the interpreter that PyScript uses (at least for now, we have plans to add more interpreters like micropython). Pyodide is being served from In this case, perhaps the best option will be referring to the Pyodide's API reference documentation. Please let us know if this helps and feel free to ask for any help 😄 |
Beta Was this translation helpful? Give feedback.
-
You will have to replace from js import document And then it should work normally. The |
Beta Was this translation helpful? Give feedback.
-
@FabioRosado thanks you ! |
Beta Was this translation helpful? Give feedback.
-
I just started to learn the source code in the 'pyscript' tutorial for newcomers, I don't quite understand, 'from pyodide.http import open_url' pycharm red prompts that there is no such package, 'pip install pyodide', it cannot be installed.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pyodide
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/87/f6/a828d76fbb3fab2c114f2c5f6cd045b574e7c52d2f192c112cc97c23c0f4/pyodide-0.0.2.tar.gz (19 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-8ce5bkpv\pyodide_87e82d8dc1ee4ae2a61e56190ec35279\setup.py", line 7, in
raise ValueError(
ValueError: Pyodide is a Python distribution that runs in the browser or Node.js. It cannot be installed from PyPi.
See https://github.com/pyodide/pyodide for how to use Pyodide.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Beta Was this translation helpful? Give feedback.
All reactions