-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update non-API docs #2101
Update non-API docs #2101
Changes from 1 commit
01635ac
9349437
e644cbb
03571a3
ea7ae56
cc2bf97
2ac13ce
0050350
2821336
cde0789
56ec4e9
c7ecb82
5162fe1
51c79c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,11 @@ Quick install | |
|
||
Run in your terminal:: | ||
|
||
easy_install -U gensim | ||
pip install --upgrade gensim | ||
|
||
or, alternatively:: | ||
|
||
pip install --upgrade gensim | ||
easy_install -U gensim | ||
|
||
In case that fails, make sure you're installing into a writeable location (or use `sudo`), or read on. | ||
|
||
|
@@ -28,9 +28,6 @@ platform that supports Python 2.6+ and NumPy. Gensim depends on the following so | |
* `NumPy <http://www.numpy.org>`_ >= 1.3. Tested with version 1.9.0, 1.7.1, 1.7.0, 1.6.2, 1.6.1rc2, 1.5.0rc1, 1.4.0, 1.3.0, 1.3.0rc2. | ||
* `SciPy <http://www.scipy.org>`_ >= 0.7. Tested with version 0.14.0, 0.12.0, 0.11.0, 0.10.1, 0.9.0, 0.8.0, 0.8.0b1, 0.7.1, 0.7.0. | ||
|
||
**Windows users** are well advised to try the `Enthought distribution <http://www.enthought.com/products/epd.php>`_, | ||
which conveniently includes Python & NumPy & SciPy in a single bundle, and is free for academic use. | ||
|
||
|
||
Install Python and `easy_install` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove this section |
||
--------------------------------- | ||
|
@@ -50,20 +47,19 @@ Install SciPy & NumPy | |
---------------------- | ||
|
||
These are quite popular Python packages, so chances are there are pre-built binary | ||
distributions available for your platform. You can try installing from source using easy_install:: | ||
distributions available for your platform. You can try installing from source using `pip` or `easy_install`:: | ||
|
||
easy_install numpy | ||
easy_install scipy | ||
easy_install install numpy | ||
easy_install install scipy | ||
|
||
If that doesn't work or if you'd rather install using a binary package, consult | ||
http://www.scipy.org/Download. | ||
If that doesn't work or if you'd rather install using a binary package, consult http://www.scipy.org/Download. | ||
|
||
Install `gensim` | ||
----------------- | ||
Install Gensim | ||
-------------- | ||
|
||
You can now install (or upgrade) `gensim` with:: | ||
You can now install (or upgrade) Gensim with:: | ||
|
||
easy_install --upgrade gensim | ||
easy_install -U gensim | ||
|
||
That's it! Congratulations, you can proceed to the :doc:`tutorials <tutorial>`. | ||
|
||
|
@@ -74,53 +70,51 @@ of computers, in :doc:`distributed`, you should install with:: | |
|
||
easy_install gensim[distributed] | ||
|
||
The optional `distributed` feature installs `Pyro (PYthon Remote Objects) <http://pypi.python.org/pypi/Pyro>`_. | ||
If you don't know what distributed computing means, you can ignore it: | ||
`gensim` will work fine for you anyway. | ||
The optional ``distributed`` feature installs `Pyro (PYthon Remote Objects) <http://pypi.python.org/pypi/Pyro>`_. | ||
If you don't know what distributed computing means, you can ignore it: Gensim will work fine for you anyway. | ||
|
||
This optional extension can also be installed separately later with:: | ||
|
||
easy_install Pyro4 | ||
pip install Pyro4 | ||
|
||
----- | ||
|
||
There are also alternative routes to install: | ||
|
||
1. If you have downloaded and unzipped the `tar.gz source <http://pypi.python.org/pypi/gensim>`_ | ||
for `gensim` (or you're installing `gensim` from `github <https://github.com/piskvorky/gensim/>`_), | ||
for Gensim (or you're installing Gensim from `Github <https://github.com/piskvorky/gensim/>`_), | ||
you can run:: | ||
|
||
python setup.py install | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
to install `gensim` into your ``site-packages`` folder. | ||
2. If you wish to make local changes to the `gensim` code (`gensim` is, after all, a | ||
package which targets research prototyping and modifications), a preferred | ||
way may be installing with:: | ||
to install Gensim into your ``site-packages`` folder. | ||
2. If you wish to make local changes to the Gensim code, a preferred way may be installing with:: | ||
|
||
python setup.py develop | ||
|
||
or:: | ||
|
||
pip install -e . | ||
|
||
This will only place a symlink into your ``site-packages`` directory. The actual | ||
files will stay wherever you unpacked them. | ||
3. If you don't have root priviledges (or just don't want to put the package into | ||
your ``site-packages``), simply unpack the source package somewhere and that's it! No | ||
compilation or installation needed. Just don't forget to set your PYTHONPATH | ||
(or modify ``sys.path``), so that Python can find the unpacked package when importing. | ||
|
||
|
||
Testing `gensim` | ||
---------------- | ||
Testing Gensim | ||
-------------- | ||
|
||
To test the package, unzip the `tar.gz source <http://pypi.python.org/pypi/gensim>`_ and run:: | ||
|
||
python setup.py test | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does this mean? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
Gensim uses Travis CI for continuous integration: |Travis|_ | ||
Gensim uses Travis CI for continuous integration, automatically running the full test suite on each pull request and commit: |Travis|_ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In addition
|
||
|
||
.. |Travis| image:: https://api.travis-ci.org/piskvorky/gensim.png?branch=develop | ||
.. _Travis: https://travis-ci.org/piskvorky/gensim | ||
.. |Travis| image:: https://travis-ci.org/RaRe-Technologies/gensim.svg?branch=develop | ||
.. _Travis: https://travis-ci.org/RaRe-Technologies/gensim | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need to add (convert to from makdown first of course)
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think that's really needed or relevant here. |
||
|
||
|
||
Problems? | ||
--------- | ||
|
||
Use the `gensim discussion group <http://groups.google.com/group/gensim/>`_ for | ||
questions and troubleshooting. See the :doc:`support page <support>`. | ||
Use the `Gensim discussion group <http://groups.google.com/group/gensim/>`_ for | ||
questions and troubleshooting. See the :doc:`support page <support>` for commercial support. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
easy_install
no more relevant (all usingpip
orconda
now), better to replaceeasy_install
withconda install -c conda-forge gensim
.In other places - use
pip
always pleaseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.