Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kwant
website
Commits
075c1443
Commit
075c1443
authored
Apr 29, 2016
by
Christoph Groth
Browse files
update installation instructions for windows
parent
43c5a2cd
Pipeline
#330
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
content/install.rst
View file @
075c1443
...
...
@@ -283,27 +283,29 @@ provided by Christoph Gohlke. To install Kwant on Windows
1. Determine whether you have a 32-bit or 64-bit Windows installation by
following these `instructions <http://support.microsoft.com/kb/827218>`_.
2. Download and install Python 3.4 for the appropriate architecture (32-bit or
64-bit) from the official `Python download site
<http://www.python.org/download/>`_.
2. Download and install Python for the appropriate architecture (32-bit: “x86” or
64-bit: “x86-64”) from the official `Python download site for Windows
<http://www.python.org/download/>`_. We recommend that you install the
latest stable Python 3 release.
3. Open a command prompt, as described in "How do I get a command prompt" at
the `Microsoft Windows website <http://windows.microsoft.com/en-us/windows/command-prompt-faq>`_.
4. In the command prompt window, execute::
C:\Python3
4
\python.exe C:\Python3
4
\Tools\Scripts\win_add2path.py
C:\Python3
5
\python.exe C:\Python3
5
\Tools\Scripts\win_add2path.py
(Instead of typing this command, you can also just copy it from here and
paste it into the command prompt window). If you did not use the default
location to install Python in step 2, then replace ``C:\Python34`` by the
actual location where Python is installed.
location to install Python in step 2, then replace ``C:\Python35`` by the
actual location where Python is installed. You may also need to adjust the
version (“35” signifies Python 3.5).
5. Reboot your computer.
6. Download the necessary packages (with the ending ``.whl``) for your
operating system (32 or 64 bit) and Python version (e.g. ``cp3
4
`` for
Python 3.
4
) from the website of `Christoph Gohlke
operating system (32 or 64 bit) and Python version (e.g. ``cp3
5
`` for
Python 3.
5
) from the website of `Christoph Gohlke
<http://www.lfd.uci.edu/~gohlke/pythonlibs/>`_. For Kwant, we recommend to
download at least `NumPy
<http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy>`_, `SciPy
...
...
@@ -325,9 +327,9 @@ provided by Christoph Gohlke. To install Kwant on Windows
To install all the ``.whl``-files in the current directory, execute ::
python
3
-c "import pip, glob; pip.main(['install', '--no-deps'] + glob.glob('*.whl'))"
python -c "import pip, glob; pip.main(['install', '--no-deps'] + glob.glob('*.whl'))"
The above cryptic command is equivalent to ``pip
3
install --no-deps
The above cryptic command is equivalent to ``pip install --no-deps
*.whl``, i.e. it installs all the wheel files in the current directory
using pip. Because the Windows command interpreter does not support globs,
we have to rely on the globbing as provided by Python itself.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment