如何从pypi安装sudokumaker?

时间:2015-03-29 16:16:27

标签: python django pip virtualenv pypi

我想在我的Django应用中使用sudokumaker 0.2。但我无法安装此软件包。我该如何安装?

我尝试了以下内容:

virtualenv '/path_to/project' -p /usr/bin/python2.7
sudo pip install sudokumaker

sudo pip install sudokumaker-0.2

2 个答案:

答案 0 :(得分:1)

通常,一旦进行了虚拟环境设置,就不会使用sudo:

virtualenv /path/to/virtualenv -p /usr/bin/python2.7
source /path/to/virtualenv/bin/activate
(virtualenv) $ pip install sudokumaker

然而,该软件包尚未发布任何版本;直到作者这样做,pip将无法安装任何东西。

要安装它,您必须download the source from sourceforge;展开存档,然后手动安装它:

$ virtualenv sudoku
New python executable in sudoku/bin/python
Installing setuptools, pip...done.
$ source sudoku/bin/activate
(sudoku)$ tar xvzf ~/Downloads/sudokumaker-0.4.tar.gz 
sudokumaker-0.4/
sudokumaker-0.4/PKG-INFO
sudokumaker-0.4/setup.py
sudokumaker-0.4/maker.py
sudokumaker-0.4/README.html
sudokumaker-0.4/sudoku_as_tex
sudokumaker-0.4/sudoku.py
sudokumaker-0.4/Version.py
sudokumaker-0.4/README.rst
sudokumaker-0.4/sudokumaker
sudokumaker-0.4/__init__.py
(sudoku)burhan@T530 ~ $ cd sudokumaker-0.4/
(sudoku)burhan@T530 ~/sudokumaker-0.4 $ python setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/sudokumaker
copying Version.py -> build/lib.linux-x86_64-2.7/sudokumaker
copying maker.py -> build/lib.linux-x86_64-2.7/sudokumaker
copying sudoku.py -> build/lib.linux-x86_64-2.7/sudokumaker
copying __init__.py -> build/lib.linux-x86_64-2.7/sudokumaker
running build_scripts
creating build/scripts-2.7
copying and adjusting sudoku_as_tex -> build/scripts-2.7
copying and adjusting sudokumaker -> build/scripts-2.7
changing mode of build/scripts-2.7/sudoku_as_tex from 644 to 755
changing mode of build/scripts-2.7/sudokumaker from 644 to 755
running install_lib
creating /home/burhan/sudoku/lib/python2.7/site-packages/sudokumaker
copying build/lib.linux-x86_64-2.7/sudokumaker/Version.py -> /home/burhan/sudoku/lib/python2.7/site-packages/sudokumaker
copying build/lib.linux-x86_64-2.7/sudokumaker/maker.py -> /home/burhan/sudoku/lib/python2.7/site-packages/sudokumaker
copying build/lib.linux-x86_64-2.7/sudokumaker/sudoku.py -> /home/burhan/sudoku/lib/python2.7/site-packages/sudokumaker
copying build/lib.linux-x86_64-2.7/sudokumaker/__init__.py -> /home/burhan/sudoku/lib/python2.7/site-packages/sudokumaker
byte-compiling /home/burhan/sudoku/lib/python2.7/site-packages/sudokumaker/Version.py to Version.pyc
byte-compiling /home/burhan/sudoku/lib/python2.7/site-packages/sudokumaker/maker.py to maker.pyc
byte-compiling /home/burhan/sudoku/lib/python2.7/site-packages/sudokumaker/sudoku.py to sudoku.pyc
byte-compiling /home/burhan/sudoku/lib/python2.7/site-packages/sudokumaker/__init__.py to __init__.pyc
running install_scripts
copying build/scripts-2.7/sudoku_as_tex -> /home/burhan/sudoku/bin
copying build/scripts-2.7/sudokumaker -> /home/burhan/sudoku/bin
changing mode of /home/burhan/sudoku/bin/sudoku_as_tex to 755
changing mode of /home/burhan/sudoku/bin/sudokumaker to 755
running install_egg_info
Writing /home/burhan/sudoku/lib/python2.7/site-packages/sudokumaker-0.4-py2.7.egg-info

您还需要手动下载和rsclib -

答案 1 :(得分:0)

python -m pip install sudokumaker

python2 -m pip install sudokumaker

安装python包。该软件包绝对存在:https://pypi.python.org/pypi/sudokumaker