Completely down due to installation issues


#1

I consider myself quite savvy, but hey, I am having a hard time. I’ve been at this for 3 hours now… maybe it’s not my day…
I am on a mac, python 3 is installed via homebrew. Somehow, I had to “update” the PATH so that Python 3 was the default (and not 2). Found an article on stackoverflow on how to do it. Then pip was not installed. Again, stackoverflow helped. Now the problem is pip points to the Python 2 directory, so I no longer know what to do. I tried to ignore that and install virtualenv to continue the setup but got:
" MacBook-Pro:myhellowebapp David$ pip install virtualenv
Requirement already satisfied: virtualenv in /Users/David/Library/Python/2.7/lib/python/site-packages (16.0.0)
matplotlib 1.3.1 requires nose, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.
MacBook-Pro:myhellowebapp David$ pip install nose
Collecting nose
Downloading https://files.pythonhosted.org/packages/99/4f/13fb671119e65c4dce97c60e67d3fd9e6f7f809f2b307e2611f4701205cb/nose-1.3.7-py2-none-any.whl (154kB)
100% |████████████████████████████████| 163kB 2.0MB/s
matplotlib 1.3.1 requires tornado, which is not installed.
Installing collected packages: nose
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/nose’
Consider using the --user option or check the permissions."
I am giving up for tonight. Hope someone reads this and helps… :(


#2

Hey drodol, I’m sorry to hear you’re having issues!

First, are you working with my Hello Web App tutorial? I see matplotlib which I am unfamiliar with.

Thanks for the clarification!


#3

Hi Tracy! Thank you so much for the quick reply. Yes, I am. I have been following the instructions. So my pip version is:

pip 10.0.1 from /Library/Python/2.7/site-packages/pip-10.0.1-py2.7.egg/pip (python 2.7)

What I pasted in the original post is what I get when I type pip install virtualenv.


#4

Arg, freakin’ Discourse didn’t alert me to your response. 😾😾😾

What’s your status now?

Sorry, this forum has been both the best idea and the worst idea at times!


#5

Hi Tracy, don’t sweat it.

I unfortunately have not been able to do anything about it. I just moved to Copenhagen with my wife, two kids and dog, so it’s been pretty hectic, and honestly I don’t even know where to start.
I’d like to try a fresh installation of everything but I first have to figure out a way to “undo” all.
I like Discourse :)


#6

Normally I do too. 😅

So I am still confused by the matplotlib part!

When you run which python in your command line, what does it say?

And then run python -V, what does it say?

Also, I just found this, maybe try running the instructions in the comment? https://stackoverflow.com/questions/49613437/has-virtualenv-installed-correctly-when-pip-install-virtualenv-outputs-using


#7

I am also confused after that, but I am not concerned about it.

I am not sure what you are after with the two commands, but this is what I got:

MacBook-Pro:~ David$ which python
/usr/bin/python
MacBook-Pro:~ David$ python -V
Python 2.7.10
MacBook-Pro:~ David$

#8

And now I am a bit more confused than before.

I know I have installed Python 3.


#9

You can have Python 2 and Python 3 on a computer — it’s what I have too, and it defaults to Python 2 as well for me.

The link I shared has this, try running both of these commands?

brew install python3 (try again, just in case, brew should be smart enough to let you know if it’s already installed

Then:
pip3 install --upgrade virtualenv


#10

Ok, I got a few errors. These are the ones I got…:

MacBook-Pro:~ David$ brew install python3
==> Installing dependencies for python: gdbm, readline
==> Installing python dependency: gdbm
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.16.high_sierra.bottl
######################################################################## 100.0%
==> Pouring gdbm-1.16.high_sierra.bottle.tar.gz
Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/gdbm.h
/usr/local/include is not writable.

After that it did something, and then another error:
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3
Target /usr/local/bin/2to3
is a symlink belonging to python. You can unlink it:
brew unlink python

To force the link and overwrite all conflicting files:
brew link --overwrite python

To list all files that would be deleted:
brew link --overwrite --dry-run python

Possible conflicting files are:
/usr/local/bin/2to3 -> /usr/local/Cellar/python/3.6.5_1/bin/2to3
/usr/local/bin/idle3 -> /usr/local/…etc…
.

Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks


#11

MacBook-Pro:~ David$ pip3 install --upgrade virtualenv
-bash: pip3: command not foundThis text will be hidden


#12

Hi, Tracy!
Just wanted to let you know that I somehow managed to make it work! So Python is now configured and I will now be able to start the tutorial! PHEW!


#13

Blarg, I missed responding to this, eek sorry! I was backpacking pretty much from then until last week. Thanks so much for the update. <3