Code Monkey home page Code Monkey logo

Comments (8)

Kentoseth avatar Kentoseth commented on September 27, 2024

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.

from pythonbrew.

twmht avatar twmht commented on September 27, 2024

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!

from pythonbrew.

Kentoseth avatar Kentoseth commented on September 27, 2024

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.

from pythonbrew.

twmht avatar twmht commented on September 27, 2024

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!

from pythonbrew.

Kentoseth avatar Kentoseth commented on September 27, 2024

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.

from pythonbrew.

twmht avatar twmht commented on September 27, 2024

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.

from pythonbrew.

Kentoseth avatar Kentoseth commented on September 27, 2024

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.

from pythonbrew.

ysakasin avatar ysakasin commented on September 27, 2024

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!

from pythonbrew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.