1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Install Python 3.2

Discussion in 'Installation and Maintenance of Ports or Packages' started by valsorym, Sep 2, 2011.

  1. valsorym

    valsorym New Member

    Messages:
    419
    Likes Received:
    0
    Hi all
    Help me Install the Python 3.2 in my laptop, please.
    I search port:
    Code:
    # whereis python
    python: /usr/ports/lang/python
    # cd /usr/ports/lang/python
    I see Makefile - defult version = 2.7.2
    But i need python 3.2.1 (or 3.1)

    I run:
    Code:
    # make && make PYTHON_VERSION=3.2.1 install clean
    but he download python-2.7.2 version.

    Next, I plan to bind to Apache22 and mod_wsg.
    Apache22 already installed and configured.

    Help me install Python 3.
     
  2. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,392
    Likes Received:
    7
  3. valsorym

    valsorym New Member

    Messages:
    419
    Likes Received:
    0
    Yes.
    Thanks.. mmm...

    I search
    Code:
    # whereis python3
    python3:
    - not found.

    I had to find python32
    Thanks ... Sorry for the stupidity.
     
  4. DutchDaemon

    DutchDaemon Administrator Staff Member Administrator Moderator

    Messages:
    10,661
    Likes Received:
    23
    Install ports-mgmt/psearch

    Code:
    $ psearch python3
    lang/python31             An interpreted object-oriented programming language
    lang/python32             An interpreted object-oriented programming language
     
  5. OH

    OH New Member

    Messages:
    209
    Likes Received:
    0
    Also, make sure to add
    Code:
    PYTHON_DEFAULT_VERSION=python3.2
    to your /etc/make.conf. This forces ports to use python 3.2 which may otherwise automatically install python 2.7 (the FreeBSD default) alongside your 3.2
     
  6. valsorym

    valsorym New Member

    Messages:
    419
    Likes Received:
    0
    Thanks all.
    Also, maybe someone will tell me how to knit Apache22 and Python3.2 using mod_wsgi.
    Discussion on this topic HERE.
    Thank you.