Installing Kwant on Windows
Hi All, The command, which is suggested on Kwant webpage pip3 install --no-deps *.whl generates (python 3.4 and win7) the following error message: Requirement '*.whl' looks like a filename, but the file does not exist *.whl is not a valid filename. Are there any other possibilities to install a bunch of packages with a single command on Windows? Thanks in advance, Jerzy
Jerzy Wrobel wrote:
The command, which is suggested on Kwant webpage pip3 install --no-deps *.whl generates (python 3.4 and win7) the following error message: Requirement '*.whl' looks like a filename, but the file does not exist *.whl is not a valid filename. Are there any other possibilities to install a bunch of packages with a single command on Windows?
Jerzy, thanks for letting us know about this. I wrote the installation instructions without access to a Windows machine, so I couldn't test them on that platform. Since the installation instructions for Numpy [1] mention that wildcards work with pip under Windows, I just took that over, hoping for the best. I had my doubts though: I believe that the Windows command line still does not handle wildcards by itself (powershell does), so wildcards in Windows would require special support in pip. Now that you have tested this, I will fix the installation instructions. Other then using a more powerful alternative shell, I do not think that there is an easy way to solve the problem. Please do let us know if you happen to find one... Could you confirm that installation from wheels with pip works under windows either with a single wheel file name per pip invocation, or with all of them in one? Christoph [1] http://pyfai.readthedocs.org/en/latest/operations/windows.html#using-christo...
Hi, I just had the idea that the lack of wildcard support in the default Windows shell could be worked-around using Python's own means. Could someone who has access to a Windows machine please try whether the Windows installation instructions [1] work when the command pip3 install --no-deps *.whl is replaced by python3 -c "import pip, glob; pip.main(['install', '--no-deps'] + glob.glob('*.whl'))" Thanks, Christoph [1] http://kwant-project.org/install#microsoft-windows
Dear Christoph, I have successfully installed Kwant 1.0.4 on Windows 7 32 bit. I however do not understand what you meant by "wildcard". I just ran the python3 -c "import pip, glob; pip.main(['install', '--no-deps'] + glob.glob('*.whl'))" line in command prompt, and received the message that "You must give atleast one requirement to install". By the way I have python 2.7.9. So I just used "python" and not "python3". I don't know if I could be of any help in this case. Regards, On Mon, Jan 4, 2016 at 3:34 PM, Christoph Groth <christoph.groth@cea.fr> wrote:
Hi,
I just had the idea that the lack of wildcard support in the default Windows shell could be worked-around using Python's own means. Could someone who has access to a Windows machine please try whether the Windows installation instructions [1] work when the command
pip3 install --no-deps *.whl
is replaced by
python3 -c "import pip, glob; pip.main(['install', '--no-deps'] + glob.glob('*.whl'))"
Thanks, Christoph
-- *Dr. Siddheshwar chopra,* *M.Sc., Ph.D (Physics)Assistant Professor (Physics),* *Amity University, Noida, India.*
Hi Siddheshwar, Thanks for trying. Did you download the *.whl files from Christoph Gohlke's site as described in [1]? You need to execute the command that I gave in the same directory into which these files have been put. Christoph [1] http://kwant-project.org/install#microsoft-windows
Dear Sir, Yes I already downloaded *.whl files from Christoph Gohlke's page manually and have them. But Python3 is not installed. Regards, On Mon, Jan 4, 2016 at 4:58 PM, Christoph Groth <christoph.groth@cea.fr> wrote:
Hi Siddheshwar,
Thanks for trying. Did you download the *.whl files from Christoph Gohlke's site as described in [1]? You need to execute the command that I gave in the same directory into which these files have been put.
Christoph
-- *Dr. Siddheshwar chopra,* *M.Sc., Ph.D (Physics)Assistant Professor (Physics),* *Amity University, Noida, India.*
Christoph, The command you suggested have worked for me (win7, python 3.4), thank you! I have tried it just on two newly downloaded wheel packages, because I had installed numpy, kwant, ipython, etcetera already before (one by one). BTW, 2to3 converter does not exist in my windows installations, nevertheless python scrips are so far interpreted correctly but apparently six-1.10.0-py2.py3-none-any.whl package is need. Jerzy
Hi,
I just had the idea that the lack of wildcard support in the default Windows shell could be worked-around using Python's own means. Could someone who has access to a Windows machine please try whether the Windows installation instructions [1] work when the command
pip3 install --no-deps *.whl
is replaced by
python3 -c "import pip, glob; pip.main(['install', '--no-deps'] + glob.glob('*.whl'))"
Thanks, Christoph
Jerzy Wrobel wrote:
BTW, 2to3 converter does not exist in my windows installations, nevertheless python scrips are so far interpreted correctly
On Windows it seems that you have to use something like: python C:\Python34\Tools\scripts\2to3.py -w script.py
but apparently six-1.10.0-py2.py3-none-any.whl package is need.
It seems indeed that matplotlib requires six, even though Gohlke’s site does not mention that. Thanks for letting us know. I have added six to the list of packages in the installation instructions. Christoph
participants (3)
-
Christoph Groth
-
Jerzy Wrobel
-
siddheshwar chopra