question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ipython can't be installed with python 2.7, even when an exact version is specified

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).

Similar to #151 , but not sure how to resolve it at all. The command “poetry add -vvv ipython” fails with a virtualenv on python 2.7 .

Issue

$ poetry update -vvv

[SolverProblemError]
The current supported Python versions are 2.7.9
Because no versions of ipython match !=6.5.0
and ipython (6.5.0) requires Python >=3.3, ipython is forbidden.
So, because myproject depends on ipython (*), version solving failed.

P.S. Somehow “poetry update” works with exact version specified: ipython = “5.8.0” but “poetry install” doesn’t get it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
buriycommented, Aug 5, 2018

Yes, problem is not only with that last ipython for the user python version isn’t detected correctly, but also that no user should get any cryptic or humiliating messages at all. Right now the dialog looks like this: – install ipython – no, i won’t, you’re doing it all wrong.

1reaction
sdispatercommented, Aug 7, 2018

@buriy I see what you mean. I agree we should improve the behavior of the add command and select a constraint that satisfies the current project Python constraint.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ipython reads wrong python version - Stack Overflow
The ipython script is "tied" to the specific Python version it was installed with – it won't automatically switch to what you installed...
Read more >
Quickstart — IPython 2.4.2-maint documentation
This documentation is for an old version of IPython. You can find docs for ... In many scenarios, this is the simplest method...
Read more >
7.x Series — IPython 8.7.0 documentation
This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than ...
Read more >
How to PIP Install Requests Python Package - ActiveState
The Requests library is available for both Python 2 and Python 3 ... To install a specific version of requests, eg. version 2.6.6,...
Read more >
Pip Install Specific Version of a Python Package: 2 Steps
To install a specific version of a Python package you can use pip: pip install YourPackage==YourVersion . For example, if you want to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found