Jupyter Notebook installation failed because jsonschema-specifications installation failed #9674
-
Hi, I installed poetry on Windows and I created a project with Indeed, poetry can't find the file format-annotation of the package jsonschema-specifications. Do you know how I could fix the installation of Jupyter Notebook through poetry ? (I tried to install jupyter lab but same issue) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Issue solved : Initially, I tried uninstalling both Poetry and Pipx. Then, I reinstalled Pipx using Pip, followed by reinstalling Poetry. However, a new issue arose: I had no permission to add packages through the VSCode terminal. I discovered that the folder pypoetry or Cache, which should be located in AppData\Local, had not been created. This indicated an error related to the cache directory. To resolve this, I changed the cache directory to a new location with proper write permissions by running the following command: After changing the cache directory, I successfully tested package installations through the VSCode terminal, including the notebook package. Comment: |
Beta Was this translation helpful? Give feedback.
-
More details about the solution by chatgpt: 1. Why did your solution work?
2. What do these directories represent in Poetry?
By default, Poetry creates these virtual environments in a cache folder. By setting virtualenvs.path to C:\Users\sauva.poetry_venvs, you specified a particular location where each project will have its own subdirectory with its virtual environment.
Conclusion
By modifying these paths, you gained more control over the files that Poetry creates, while avoiding permission and system restriction issues. |
Beta Was this translation helpful? Give feedback.
-
The issue reported here is likely a result of using Python installed from Microsoft Store which uses a sandboxed APP_DATA directory. You can work around this issue by either using a Python version installed using an installer from https://python.org or setting cache directory explicitly like indicated at python-poetry/install.python-poetry.org#135 (comment). poetry config cache-dir C:\Users\username\pypoetry |
Beta Was this translation helpful? Give feedback.
The issue reported here is likely a result of using Python installed from Microsoft Store which uses a sandboxed APP_DATA directory.
You can work around this issue by either using a Python version installed using an installer from https://python.org or setting cache directory explicitly like indicated at python-poetry/install.python-poetry.org#135 (comment).