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.

Conda compatibility

See original GitHub issue

Hi! I tried installing poetry alongside my miniconda env. It’s installed via the curl installer.

At first, it seems that package resolving and installing works. When I try to run the script using:

poetry run python project/script.py

It emit the error saying that package is not found, which can be found in poetry show.

I’m not sure if this is actually conda related issue or just misuse of the CLI. Would be nice to know how I can get it working with poetry. Seems like a really nice project. Thx

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:19
  • Comments:22 (8 by maintainers)

github_iconTop GitHub Comments

11reactions
adamgranthendrycommented, Jul 25, 2021

@sdispater I think everyone is missing a key point here: poetry only support pure python wheels. conda comes with many packages built and optimized for speed targeting specific platforms, which is needed for many scientific applications (e.g. numpy+mkl, Intel embree, support for SSE and AVX instruction sets, etc.). Until poetry can support these packages for heavy-lifting data science applications, I don’t think poetry will be much use at all to the data scientist.

10reactions
ryanfeathercommented, Jun 2, 2019

In addition to the above, I had to configure poetry to not create a new virtualenv to use the conda env::

poetry config settings.virtualenvs.path $CONDA_ENV_PATH
poetry config settings.virtualenvs.create 0

It seems like an inevitability that you are going use pip for something when using conda, so at the very least having the poetry wrapper over top is a bonus, as long as you’re basically using conda as just a python vendor as @darrenleeweber describes. It seems like the “right” way to mix the two would be to create a CondaEnv and CondaInstaller that are somehow configurable within. I’m definitely not enough of a conda internals expert to attempt this though.

Given the necessity of managing scientific and numerical dependencies for python projects it sure would be nice if there really was “one-- and preferably only one --obvious way to do it.”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation — conda 22.11.1.post9+82fa24bae documentation
The fastest way to obtain conda is to install Miniconda, a mini version of Anaconda that includes only conda and its dependencies.
Read more >
System Requirements - Anaconda Documentation
RHEL/CentOS 6.5 to 7.4, Ubuntu 12.04 +. Ubuntu users may need to install cURL. · Client environment may be Windows, macOS or Linux...
Read more >
How to Manage Python Dependencies with Conda - ActiveState
Conda analyzes each package for compatible dependencies, and how to install them without conflict. If there is a conflict, Conda will let ...
Read more >
Conda Support - Read the Docs
This is the best option to maximize cross-platform compatibility, however it may include packages that are not needed to build your docs.
Read more >
python 3.x - how does conda check packages for compatibility?
Conda checks, if all packages that will end up in the environment are compatible with each other and tries to find the optimal...
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