Azure / simdem

Tool for Simulating Demo's, delivering Tutorials and using documentation as tests.
MIT License
34 stars 17 forks source link

Install of SimDem2 fails with latest pip #111

Closed SorraTheOrc closed 6 years ago

SorraTheOrc commented 6 years ago

To reproduce

$ pip install --upgrade pip

Once upgraded:

$ pip3 install -v -e .
Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
ImportError: cannot import name 'main'

Problem

According to a StackOverflow post:

pip 10.x adjusts where its internals are situated. The pip3 command you're seeing is one provided by your package maintainer (presumably debian based here?) and is not a file managed by pip. You can read more about this on pip's issue tracker

Workaround

Again, from the above StackOverflow post - you need to downgrade to an earlier version of pip until this is resolved in Debian / Ubuntu.

sudo python3 -m pip uninstall pip && sudo apt install python3-pip --reinstall

Now run the install again:

$ pip3 install -v -e .
lastcoolnameleft commented 6 years ago

@rgardler Thanks for providing workaround. I've included it in the main README.md file as a reference:

https://github.com/Azure/simdem/blob/simdem2/README.md