8000 Problem upgrading Pandas and other modules in Winpython 3.7.12 · Issue #1157 · winpython/winpython · GitHub
[go: up one dir, main page]

Skip to content
Problem upgrading Pandas and other modules in Winpython 3.7.12 #1157
Open
@stan3c

Description

@stan3c

So, I have quite a problem here. PC with Win7, downloaded Winpython 3.7.12 that has Pandas 1.2.5, but my code needs Pandas min v1.3.
I do not know what the issue is but Spyder and "WinPython Control Panel.exe" do not work. Nothing happens when I run them.
But that is not the biggest problem, as I could probably find a way round those problems.
The thing is that I need Pandas min v1.3 and I am unable to upgrade this package. Older versions of Winpython also have a problem updating Pandas to v1.3.
Which version of Winpython should I download to be able to have (or to be able to upgrade to) Pandas v1.3 AND have Spyder and control panel working out of the box on Win?
Is there a way to fix the upgrading pandas problem?

More problems. I am unable to register python with the script provided in Scripts folder, I am also unable install pywin32 or pypiwin32.


D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64\Scripts>register_python.bat
D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64
D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64\python.exe -c "import sys; print(sys.maxsize > 2**32)" D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64
D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64\python.exe -c "import sys; print('%d.%d' % (sys.version_info.major, sys.version_info.minor))" * D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64
D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64\python.exe -c "import sys; print('%d.%d.%d' % (sys.version_info.major, sys.version_info.minor,sys.version_info.micro))" D:\Work\WPy64-37120
Traceback (most recent call last):
File "D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64\Scripts\register_python", line 24, in
associate.register(args.target, current=not args.all)
File "D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64\site-packages\winpython\associate.py", line 283, in register
target, current=current
File "D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64\site-packages\winpython\associate.py", line 43, in _get_shortcut_data
current=current
File "D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64\site-packages\winpython\utils.py", line 222, in create_winpython_start_menu_folder
path = get_winpython_start_menu_folder(current=current)
File "D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64\site-packages\winpython\utils.py", line 206, in get_winpython_start_menu_folder
folder = get_special_folder_path("CSIDL_PROGRAMS")
File "D:\Work\WPy64-37120\pypy3.7-v7.3.7-win64\site-packages\winpython\utils.py", line 184, in get_special_folder_path
from win32com.shell import shell, shellcon
ModuleNotFoundError: No module named 'win32com'

D:\Work\WPy64-37120\scripts>pip3 install pandas==1.3.2 --upgrade
Collecting pandas==1.3.2
Using cached pandas-1.3.2.tar.gz (4.7 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error

pip subprocess to install build dependencies did not run successfully.
exit code: 1

[110 lines of output]
Ignoring numpy: markers 'python_version == "3.8" and (platform_machine != "arm64" or platform_system != "Da
Ignoring numpy: markers 'python_version >= "3.9" and (platform_machine != "arm64" or platform_system != "Da
Ignoring numpy: markers 'python_version == "3.7" and platform_machine == "aarch64"' don't match your enviro
Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "aarch64"' don't match your enviro
Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Da
Ignoring numpy: markers 'python_version == "3.9" and platform_machine == "arm64" and platform_system == "Da
Collecting setuptools>=51.0.0
Using cached setuptools-65.6.0-py3-none-any.whl (1.2 MB)
Collecting wheel
Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
Collecting Cython<3,>=0.29.21
Using cached Cython-0.29.32-py2.py3-none-any.whl (986 kB)
Collecting numpy==1.17.3
Using cached numpy-1.17.3.zip (6.4 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: numpy
Building wheel for numpy (setup.py): started
Building wheel for numpy (setup.py): finished with status 'error'
error: subprocess-exited-with-error

python setup.py bdist_wheel did not run successfully.
exit code: 1

[15 lines of output]
Running from numpy source directory.
Traceback (most recent call last):
  File "<string>", line 36, in <module>
  File "<pip-setuptools-caller>", line 34, in <module>
  File "C:\Users\admin\AppData\Local\Temp\pip-install-yp5_i23w\numpy_9ae4369ce3a44724a3332f13bc0eab1b\set
    setup_package()
  File "C:\Users\admin\AppData\Local\Temp\pip-install-yp5_i23w\numpy_9ae4369ce3a44724a3332f13bc0eab1b\set
    from numpy.distutils.core import setup
  File "C:\Users\admin\AppData\Local\Temp\pip-install-yp5_i23w\numpy_9ae4369ce3a44724a3332f13bc0eab1b\num
    from . import ccompiler
  File "C:\Users\admin\AppData\Local\Temp\pip-install-yp5_i23w\numpy_9ae4369ce3a44724a3332f13bc0eab1b\num
    from numpy.distutils import log
  File "C:\Users\admin\AppData\Local\Temp\pip-install-yp5_i23w\numpy_9ae4369ce3a44724a3332f13bc0eab1b\num
    from distutils.log import Log as old_Log
ImportError: cannot import name 'Log'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Running setup.py clean for numpy
error: subprocess-exited-with-error

python setup.py clean did not run successfully.
exit code: 1

[10 lines of output]
Running from numpy source directory.

`setup.py clean` is not supported, use one of the following instead:

  - `git clean -xdf` (cleans all files)
  - `git clean -Xdf` (cleans all versioned files, doesn't touch
                      files that aren't checked into the git repo)

Add `--force` to your command to use it anyway if you must (unsupported).

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed cleaning build dir for numpy

Failed to build numpy
Installing collected packages: wheel, setuptools, numpy, Cython
Running setup.py install for numpy: started
Running setup.py install for numpy: finished with status 'error'
error: subprocess-exited-with-error

Running setup.py install for numpy did not run successfully.
exit code: 1

[24 lines of output]
Running from numpy source directory.

Note: if you need reliable uninstall behavior, then install
with pip instead of using `setup.py install`:

  - `pip install .`       (from a git repo or downloaded source
                           release)
  - `pip install numpy`   (last NumPy release on PyPi)


Traceback (most recent call last):
  File "<string>", line 36, in <module>
  File "<pip-setuptools-caller>", line 34, in <module>
  File "C:\Users\admin\AppData\Local\Temp\pip-install-yp5_i23w\numpy_9ae4369ce3a44724a3332f13bc0eab1b\set
    setup_package()
  File "C:\Users\admin\AppData\Local\Temp\pip-install-yp5_i23w\numpy_9ae4369ce3a44724a3332f13bc0eab1b\set
    from numpy.distutils.core import setup
  File "C:\Users\admin\AppData\Local\Temp\pip-install-yp5_i23w\numpy_9ae4369ce3a44724a3332f13bc0eab1b\num
    from . import ccompiler
  File "C:\Users\admin\AppData\Local\Temp\pip-install-yp5_i23w\numpy_9ae4369ce3a44724a3332f13bc0eab1b\num
    from numpy.distutils import log
  File "C:\Users\admin\AppData\Local\Temp\pip-install-yp5_i23w\numpy_9ae4369ce3a44724a3332f13bc0eab1b\num
    from distutils.log import Log as old_Log
ImportError: cannot import name 'Log'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: legacy-install-failure

Encountered error while trying to install package.

numpy

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

pip subprocess to install build dependencies did not run successfully.
exit code: 1

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

D:\Work\WPy64-37120\scripts>pip install numpy
Requirement already satisfied: numpy in d:\work\wpy64-37120\pypy3.7-v7.3.7-win64\site-packages (1.21.4+mkl)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0