如何从 pypi 安装 sudokumaker?
How to install sudokumaker from pypi?
我想在我的 Django 应用程序中使用 sudokumaker 0.2。但是我无法安装这个包。如何安装?
我尝试了以下方法:
virtualenv '/path_to/project' -p /usr/bin/python2.7
sudo pip install sudokumaker
和
sudo pip install sudokumaker-0.2
python -m pip install sudokumaker
或
python2 -m pip install sudokumaker
安装python包。该包确实存在:https://pypi.python.org/pypi/sudokumaker
通常情况下,您不会使用 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 - 再次手动。
我想在我的 Django 应用程序中使用 sudokumaker 0.2。但是我无法安装这个包。如何安装?
我尝试了以下方法:
virtualenv '/path_to/project' -p /usr/bin/python2.7
sudo pip install sudokumaker
和
sudo pip install sudokumaker-0.2
python -m pip install sudokumaker
或
python2 -m pip install sudokumaker
安装python包。该包确实存在:https://pypi.python.org/pypi/sudokumaker
通常情况下,您不会使用 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 - 再次手动。