Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing pip #144

Open
twmht opened this issue Sep 19, 2014 · 8 comments
Open

missing pip #144

twmht opened this issue Sep 19, 2014 · 8 comments

Comments

@twmht
Copy link

twmht commented Sep 19, 2014

hi,
I use pythonbrew to install python 2.7.7 and switch to python 2.7.7 in my Lubuntu 14.04.

pythonbrew install 2.7.7
pythonbrew switch 2.7.7

However, the pip is missing.

For example, when I run

which pip

The expected result would be /home/tumh/.pythonbrew/pythons/Python-2.7.7/bin/pip

However, it returns nothing

That is, pythonbrew does not install the pip binary into .pythonbrew directory.

I am not sure if I miss some packages.

Thank you.

@Kentoseth
Copy link

You need to install pip together with Python instead of Python alone.

So try this instead:

pythonbrew uninstall 2.7.7
pythonbrew install --configure="--with-zlib" 2.7.7

Also, I request that you try supporting us at: https://github.com/pybank/pythonbrew

As we are maintaining the project now.

@twmht
Copy link
Author

twmht commented Sep 22, 2014

hi,

The installation failed when I run

pythonbrew install --configure="--with-zlib" 2.7.7

The error messages are

Downloading distribute_setup.py as /home/tumh/.pythonbrew/dists/distribute_setup.py
######################################################################## 100.0%
Installing distribute into /home/tumh/.pythonbrew/pythons/Python-2.7.7
ERROR: Failed to install setuptools. See /home/tumh/.pythonbrew/log/build.log to see why.
Skip installation of setuptools.

.pythonbrew/log/build.log shows

(cd /home/tumh/.pythonbrew/pythons/Python-2.7.7/share/man/man1; ln -s python2.1 python.1)
  File "distribute_setup.py", line 1
    <HTML><TITLE>504 Gateway Timeout</TITLE>
    ^
SyntaxError: invalid syntax

Any suggestions?

Thank you!

@Kentoseth
Copy link

Hello, what system are you using?

Also, is python 2.7.7 available in the config file?

If using a *nix distribution, you can check here: home/.pythonbrew/etc/config.cfg

If there is no 2.7.7 here, add it and then try running the commands (above) again.

@twmht
Copy link
Author

twmht commented Sep 26, 2014

hi @Kentoseth ,

I am using Lubuntu 14.04

The config.cfg has configured Python 2.7.7 before.

[Python-2.7.7]
url = http://www.python.org/ftp/python/2.7.7/Python-2.7.7.tgz
latest = True

Installing setup-tool always encounters the problem.

I have installed all the dependencies as other similar issues suggest.

Any other suggestions?

Thank you!

@Kentoseth
Copy link

Hi there,

Yes, I see now that Python successfully downloaded, so my mistake on the config part.

I think this might work also:

Firstly, I recommended that you uninstall 2.7.7 from pythonbrew (hopefully this is done)

Now see which python you are using by typing:

python

I'm not sure which version you might be on now, but try switching pythonbrew off at this point.

(I think it is something like:

pythonbrew off

)

Now try this command:

pythonbrew install --configure="--with-zlib" 2.7.7

Tell me the outcome of this.

@twmht
Copy link
Author

twmht commented Sep 26, 2014

hi @Kentoseth,

The python version is 2.7.6 after I uninstall 2.7.7. And 2.7.6 is my system-wide python version.

After I retry the command

pythonbrew install --configure="--with-zlib" 2.7.7

The problem still exists and the error message does not change.

Thank you.

@Kentoseth
Copy link

Hi there,

My apologies for the back and forth.

Can you try running this command:

pythonbrew install --configure="--with-zlib" 2.7.6

This problem is very unusual, as I managed to get 2.7.8 running with pip.

@ysakasin
Copy link

ysakasin commented Oct 1, 2014

Hi @twmht,

I get the solution.
It is shown at https://github.com/pybank/pythonbrew/pull/7/files .
Pip will be installed if you do the same modifying after that install python 2.7.7 by pythonbrew.
Let's try it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants