I read this without finding the solution: http://docs.python.org/install/index.html
相关问题
- How does the setup bootstrapper detect if prerequi
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
On advice from http://for-ref-only.blogspot.de/2012/08/installing-beautifulsoup-for-python-3.html, I used the Windows command prompt with:
where BeautifulSoup\beautifulsoup4-4.3.1 is the downloaded and extracted beautifulsoup4-4.3.1.tar file. It works.
OR
can remove old version 3
I think the current right way to do this is by
pip
like Pramod commentsbecause of last changes in Python, see discussion here. This was not so in the past.
The "normal" way is to:
cd
to the resulting directorypython setup.py install
Another solution is to use
easy_install
. Go to http://peak.telecommunity.com/DevCenter/EasyInstall), install the package using the instructions on that page, and then type, in a Terminal window:easy_install
will take care of downloading, unpacking, building, and installing the package. The advantage to usingeasy_install
is that it knows how to search for many different Python packages, because it queries the PyPI registry. Thus, once you haveeasy_install
on your machine, you install many, many different third-party packages simply by one command at a shell.Brian beat me too it, but since I already have the transcript:
easy_install
.. or the normal boring way:
Download the package and unpack it. In Terminal, go to the package's directory and type