When I try to install a package via the Packages tool, it fails with
Could not find a matching version of package <version>, for any python package that I try to install. The
<version> is what version is listed in the search, and the version specified in the install command.
Install the package, without errors.
After the add command in the shell, it gives this error message:
--> poetry add 'replit 3.5.0'
Using version ^3.5.0 for replit
Could not find a matching version of package 3.5.0
exit status 1
The shell command in the output also does not work. However, a plain shell command install with no version specified will install correctly. Import guessing does not specify the version so it also still works.
It seems that the package name and the version specified are interpreted as two separate packages, but of course
3.5.0 isn’t an actual package, so there is an error. The space in between the package name and version should instead be a
Steps to reproduce:
Create a new python repl with the official template. Open the Packages tool and click Install for any python package. It fails because of the bad formatting. The versionless shell command counterpart will work for the same package and install the same version (the latest one).
Also, the Packages tool does not allow the user to specify what version to use, which is another reason why a lot of people just use shell commands.
Use a shell command to install the package, or use auto guessing.
import replit # <- replit package will be auto installed by this when repl is run
Shell commands (will not install System Dependencies automatically):
poetry add replit
poetry add email@example.com