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
    Thanks Received:
    20
    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,628
    Thanks Received:
    2,386
    valsorym thanks for this.
  3. valsorym

    valsorym New Member

    Messages:
    419
    Thanks Received:
    20
    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,767
    Thanks Received:
    1,872
    Install ports-mgmt/psearch

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

    OH New Member

    Messages:
    209
    Thanks Received:
    32
    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
     
    valsorym thanks for this.
  6. valsorym

    valsorym New Member

    Messages:
    419
    Thanks Received:
    20
    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.