-
Notifications
You must be signed in to change notification settings - Fork 1.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
Issue with installing the required Python packages (on both Windows 10 and Ubuntu 20.04) #2
Comments
Hi @guidoising, It looks like you are using Python 3.9, which doesn't yet have wheels for scipy and numpy. Since you are using conda, you can easily specify the version of Python to use when you create the virtual environment by adding It also looks like you hit control-c, but depending on what was already installed the wheel can fail while the packages still get installed (it falls back on building without the wheel). Once the wheel package is installed, this might not happen (I don't recall and I'm currently without access to a computer for a few days). If specifying Python 3.8 doesn't work, then you can try telling pip to ignore the wheels using this argument. Let me know if either of those works. If not, I can look further into this when I'm back in a few days. |
Hi Stefanie, many thanks for your ultra-swift reply. I have removed the initial book_env and recreated it with the option you advised:
This has resolved the issues, both on Win10 and Ubuntu. The installation completed without errors! Best regards and again many thanks for your help. Enjoy the time without access to a computer ;-) ` |
Hi Stefanie, one addendum, which might prove useful for others using Windows: After I got it working yesterday, I have decided to "clean up" my environment and perfom a "fresh install" of Anaconda 3.
This was fixed according to xlwings/xlwings#1174 with
Testing showed that this was only necessary on my Windows 10 environment. The Ubuntu 20.04 virtual machine worked without. I assume the missing DLL was installed in the previously environment through my experiments with other packages, i.e. via installation of Jupyter Notebook/Lab through the anaconda navigator. ... just in case others might stumble as well. Best regards, |
Hi Guido, Glad you got it working, and thanks for looking into this further. I have some additional questions for you on your Windows setup since
|
Hello Stefanie, 1.) I'm using Anaconda 3 (Anaconda3-2020.11-Windows-x86_64.exe) - this is the current version that you would download from here: https://www.anaconda.com/products/individual [https://repo.anaconda.com/archive/Anaconda3-2020.11-Windows-x86_64.exe] 2.) To be honest, I have no clue how or when the Python 3.9 came into play - I must have inadvertedly installed that through Anaconda Navigator when being prompted to upgrade something and then decided to upgrade Python as well (which was obviously not a good idea in terms of compatibility) Now, after clean up and reinstall of Anaconda, the base environment is on following versions:
I have simulated the end-to-end installation process on a clean Windows 10 environment running on VirtualBox and using a freshly installed Windows 10 (Windows 10 20H2.iso). When I create the book_env with:
the book_env has the following release: python 3.8.8. There is no pywin32, jupyter or jupyterlab yet. I need to install git for windows (Git-2.31.1-64-bit.exe). After
Completes successfully. Versions are:
However, trying to run jupyter lab results in error: When I then execute
The following indicates, that pywin32 version 227 is installed (instead of 300) However, when verifying the pywin32 version, it still is 300! But now jupyter lab is running! ... That was a very long answer to a short question, my apologies! I do not mean to waste your time - but being atomic physicist by trade, I had to research the issue under "lab conditions". The traces show that
Maybe you can read more from the traces - but don't spend to much time. Please let me know if there is anything else you need to have simulated or traced - happy to do so if it helps. Best regards, |
Hi Guido, Thank you for your detailed response. From my initial research, it does seem to be an issue with the installation of the I don't think we need to look into it any further since we know a fix that works consistently -- thanks for testing again! I pinned this issue for others to reference :) |
Hello Stefanie,
I have recently received my copy of the second edition of your book.
Trying to follow along, I ran into an issue an page 39 with the command: (book_env) $ pip3 install -r requirements.txt
The problem seems with "wheel" or later in the requirements file:
I have retried this on Windows 10 with Anaconda 3 and then also on a "freh install" of Ubuntu 20.04 LTS in a virtual machine.
Please see the attached traces from both OS.
Please let me know if you require additional information.
Best regards,
Guido
Windows.txt
Ubuntu.txt
The text was updated successfully, but these errors were encountered: