IronLanguages / ironpython2

Implementation of the Python programming language for .NET Framework; built on top of the Dynamic Language Runtime (DLR).

Home Page:http://ironpython.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pip installation errors/missing modules

furkankarayel opened this issue · comments

Prerequisites

The issue tracker is used to report bugs and request new features, NOT to ask questions.

Questions should be posted to the users mailing list which can be accessed at
https://ironpython.groups.io/g/users.

  • Are you running the latest version?
  • Are you reporting to the correct repository?
  • Did you perform a cursory search?

Description

I have problems with pip. Numpy installation with the command pip install numpy fails.
The next problem is, I decided to upgrade the pip version due to the warning but it throws an exception aswell.

Steps to Reproduce

WARNING: You are using pip version 19.2.3, however version 20.3.4 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Program Files\IronPython 2.7\Lib\site-packages\numpy>ipy -m pip install --upgrade pip
Unhandled exception:
Traceback (most recent call last):
  File "C:\Program Files\IronPython 2.7\Lib\runpy.py", line 187, in run_module
  File "C:\Program Files\IronPython 2.7\Lib\runpy.py", line 81, in _run_module_code
  File "C:\Program Files\IronPython 2.7\Lib\runpy.py", line 72, in _run_code
  File "C:\Program Files\IronPython 2.7\Lib\site-packages\pip\_vendor\urllib3\packages\six.py", line 203, in load_module
  File "C:\Program Files\IronPython 2.7\Lib\site-packages\pip\_vendor\urllib3\packages\six.py", line 115, in _resolve
  File "C:\Program Files\IronPython 2.7\Lib\site-packages\pip\_vendor\urllib3\packages\six.py", line 82, in _import_module
  File "C:\Program Files\IronPython 2.7\Lib\httplib.py", line 80, in <module>
  File "C:\Program Files\IronPython 2.7\Lib\mimetools.py", line 6, in <module>
  File "C:\Program Files\IronPython 2.7\Lib\tempfile.py", line 35, in <module>
  File "C:\Program Files\IronPython 2.7\Lib\site-packages\numpy\random\__init__.py", line 87, in <module>
  File "C:\Program Files\IronPython 2.7\Lib\site-packages\pip\__main__.py", line 16, in <module>
  File "C:\Program Files\IronPython 2.7\Lib\site-packages\pip\_internal\__init__.py", line 19, in <module>
  File "C:\Program Files\IronPython 2.7\Lib\site-packages\pip\_vendor\urllib3\__init__.py", line 7, in <module>
  File "C:\Program Files\IronPython 2.7\Lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 11, in <module>
  File "C:\Program Files\IronPython 2.7\Lib\site-packages\pip\_vendor\urllib3\exceptions.py", line 2, in <module>
ImportError: No module named mtrand

When I try to install mtrand this error is coming:

C:\Program Files\IronPython 2.7\Lib\site-packages\numpy>pip install mtrand DEPRECATION: A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Collecting mtrand Downloading https://files.pythonhosted.org/packages/e4/35/868fc01c519f61533182628ede5a9fdc58204689c4ad28de57fb467742ee/mtrand-0.1.tar.gz (46kB) |################################| 51kB 514kB/s Installing collected packages: mtrand Running setup.py install for mtrand ... error ERROR: Command errored out with exit status 1: command: 'c:\program files\ironpython 2.7\ipy.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\furkank\\appdata\\local\\temp\\pip-install-no1thi\\mtrand\\setup.py'"'"'; __file__='"'"'c:\\users\\furkank\\appdata\\local\\temp\\pip-install-no1thi\\mtrand\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\furkank\appdata\local\temp\pip-record-tb3ttf\install-record.txt' --single-version-externally-managed --compile cwd: c:\users\furkank\appdata\local\temp\pip-install-no1thi\mtrand\ Complete output (7 lines): running install running build running build_ext building 'mtrand' extension warning: It seems you have Visual Studio 6 installed, but the expected registry settings are not present. You must at least run the Visual Studio GUI once so that these entries are created. error: Python was built with Visual Studio version 6, and extensions need to be built with the same version of the compiler, but it isn't installed. ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\program files\ironpython 2.7\ipy.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\furkank\\appdata\\local\\temp\\pip-install-no1thi\\mtrand\\setup.py'"'"'; __file__='"'"'c:\\users\\furkank\\appdata\\local\\temp\\pip-install-no1thi\\mtrand\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\furkank\appdata\local\temp\pip-record-tb3ttf\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

Expected behavior: I want to install pip packages successfully.

Actual behavior: Every pip installation is failing.

Versions

IronPython 2.7.11 (2.7.11.1000)
[.NETFramework,Version=v4.5 on .NET Framework 4.8.4400.0 (64-bit)]