Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing pandas and Python versioning #2454

Closed
2 of 3 tasks
thmsklngr opened this issue May 22, 2020 · 2 comments
Closed
2 of 3 tasks

Installing pandas and Python versioning #2454

thmsklngr opened this issue May 22, 2020 · 2 comments
Labels
status/duplicate Duplicate issues

Comments

@thmsklngr
Copy link

  • 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: Ubuntu 18.04 LTS
  • Poetry version: 1.0.5
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

I tried to install pandas todady using Poetry and it failed several times.
The result was:

[SolverProblemError]
The current project's Python requirement (^3.6) is not compatible with some of the required packages Python requirement:
  - pandas requires Python >=3.6.1

Because pandas (1.0.3) requires Python >=3.6.1
 and no versions of pandas match >1.0.3,<2.0.0, pandas is forbidden.
So, because edis depends on pandas (^1.0.3), version solving failed.

I had python = "^3.6" in my pyproject.toml, originally set by Poetry on initializing the virtual environment. I then tried different values in the order python = "3.6", python = ">=3.6.1, < 3.7" until I set it to python = ">=3.6.1" and then succeeded with the installation. Python version used in the environment is 3.6.9. Somehow weird.
Regards, Thomas

@thmsklngr thmsklngr added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels May 22, 2020
@finswimmer
Copy link
Member

Hello @mosesontheweb,

short answer: poetry resolves the dependencies for all python versions declared in the pyproject.toml and not just the one currently used.

Long answer: Please see my comment in #2444 (comment)

Setting python = ^3.6.1 should solve your problem.

fin swimmer

@finswimmer finswimmer added status/duplicate Duplicate issues and removed status/triage This issue needs to be triaged kind/bug Something isn't working as expected labels May 22, 2020
Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

2 participants