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.

Any plans to make it work with anaconda python?

See original GitHub issue

Hi, Anaconda doesn’t have ensurepip so I get error as below. Are there any plans to make it work with anaconda? I would install it under different python, but I saw a thread it doesn’t work (yet) with pyenv, which I use to manage my python versions.

Thank you.

> python -VV                                                                                                                            
Python 3.6.2 | packaged by conda-forge | (default, Jul 23 2017, 22:59:30) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)]

> python get-poetry.py                                                                                                                  
Retrieving metadata

Installing version: 0.10.3
  - Getting dependencies
  - Vendorizing dependencies
  - Installing poetry

poetry (0.10.3) successfully installed!

> poetry new test                                                                                                                       
Created package test in test

> cd test                                                                                                                               
> poetry install                                                                                                                 
Creating virtualenv test-py3.6 in /home/kossak/.cache/pypoetry/virtualenvs
                                                                                                                                                              
[CalledProcessError]                                                                                                                           
Command '['/home/kossak/.cache/pypoetry/virtualenvs/test-py3.6/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit stat  
us 127.                                                                                                                                                     
                                                                                                                                                              
install [--no-dev] [--dry-run] [-E|--extras EXTRAS] [--develop DEVELOP]

> python -m ensurepip
/home/kossak/anaconda3/bin/python: No module named ensurepip

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:19
  • Comments:25 (3 by maintainers)

github_iconTop GitHub Comments

17reactions
kiwi0fruitcommented, Oct 21, 2018

@sdispater Anconda uses another package manager - conda. And also can install pip packages via pip on top of conda packages in a compatible way. I guess if poetry would provide a unified interface for both pip based and conda based environments it would be a “+1” consideration to use it instead of pipenv.

Conda already has a nice dependency resolver. Pip that is installed on top - does not.

I’ve investigated the abilities of conda to reliably reproduce the installation - and it’s not there yet. But I foresee that it’s not that complex to add. I’ve collected issues about it here: https://github.com/kiwi0fruit/misc/issues/4

13reactions
leyceccommented, Jan 26, 2019

As this issue now appears to host the collective discussion for conda + poetry integration, I have a large-scale query for the resident wizards in the room: is conda-forge known to play nicely with poetry?

Like all involved, I have an abiding hatred for the festering cesspit that is setuptools + pip + pipenv. Like all involved, I also like things that work – and conda-forge feedstocks work out-of-the-box with that cesspit. I’m concerned that transitioning wholesale to poetry will compromise our ability to deliver timely updates to conda-forge feedstocks… or perhaps our ability to develop conda-forge feedstocks at all. There probably be undocumented dragons here that will burn us all horrifyingly, aren’t there?

Are there any existing conda-forge feedstocks leveraging a pure-poetry installation pathway (i.e., defining only a single top-level pyproject.toml file)? My dim suspicion is “Nope.” Still, my hatred is sufficiently abiding that we’ll probably take the poetry plunge for our next large-scale project, cross many fingers, chew much bubblegum, and dream wildly of sane tooling in a galaxy far, far away.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Anaconda | The World's Most Popular Data Science Platform
Anaconda offers the easiest way to perform Python/R data science and machine learning on a single machine. Start working with thousands of open-source ......
Read more >
What is Anaconda for Python & Why Should You Learn it?
Anaconda Python is the perfect platform for beginners who want to learn Python. It's easy to install, and you can get started quickly...
Read more >
Python Anaconda Tutorial | Getting Started With ... - Edureka
Open anaconda prompt and check if the library is already installed or not. Since there is no module named numpy present, we will...
Read more >
Python Tutorial: Anaconda - Installation and Using Conda
In this Python Tutorial, we will be learning how to install Anaconda by Continuum Analytics. Anaconda is a data science platform that comes ......
Read more >
How to Add Packages in Anaconda Python - ActiveState
Pip will work in any environment where Python is installed, including Anaconda and Conda environments, but it cannot install Conda Python ...
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