Python >3.7 should skip install `pathlib`, otherwise will be failed when existing package depends on `pathlib`
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name:
- Poetry version:
- Link of a Gist with the contents of your pyproject.toml file:
Issue
latest setuptools
add a new vendor importlib_meta
which used pathlib
.
If my dependency depends on pathlib
, poetry will still try to install it. But I don’t know why setuptools
try to use the pypi pathlib
rather than built-in pathlib
, which PosixPath
has no attribute read_text
.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
I Get ImportError: No module named pathlib, even after ...
When you install python on windows "python" defaults to the python 2.7 installation ( probably changed now that 2.7 is no longer supported)...
Read more >ERROR: Cannot install because these package versions have ...
Option 1 - Use a Pre-Configured Environment]: Use install_gluonts() to install GluonTS Python Dependencies into a conda environment named ...
Read more >Bug #1962819 “pip fails to install pathlib in Ubuntu 22.04 with ...
This breaks any package relying on pathlib. The output from the install command is: rocko@ubuntu:~$ pip install pathlib Defaulting to user ...
Read more >pathlib - PyPI
pathlib offers a set of classes to handle filesystem paths. It offers the following advantages over using string objects: No more cumbersome use...
Read more >4. Using Python on Windows — Python 3.11.1 documentation
All of the options available in the installer UI can also be specified from the command line, allowing scripted installers to replicate an...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Than you have at least two options:
Ok