0

I want to install pyinsane2 using Python 3.6 on Windows 8.1. When running 'python setup.py sdist_wheel install' it tells me: no module named 'version'. So I tried to install the module version manually.

Running the command pip install version, it then shows me an Import error cannot import name 'izip_longest'. I already know that I have to take out the i of izip in python 3, but I cannot find the file, where I can change it. It tells me the file (version.py) would lay in 'C:\Users\myname\AppData\Local\Temp\pip-build-p619-k9v6\version\version.py', but the folder pip-build-p619-k9v6 does not exist in my Temp directory.

Any Ideas how I can get access to the file? Thanks

dub stylee
  • 3,252
  • 5
  • 38
  • 59
hccavs19
  • 165
  • 3
  • 9
  • Maybe you could use the [semver](https://pypi.python.org/pypi/semver) module instead? – code_onkel Feb 12 '18 at 19:03
  • I can't tell the diffrence, but I'm actually just installing the "version" module, because I want to install pyinsane2. When running 'python setup.py sdist_wheel install' it tells me: no module named 'version'. so I wanted to install the module version ..., But thanks for you help! – hccavs19 Feb 12 '18 at 19:12
  • What happens if you first execute `pip install --upgrade pip wheel setuptools` and `pip install pyinsane2` afterwards? – code_onkel Feb 12 '18 at 19:18
  • so after the first command its tell me "Requirements are already up to date" and after the second command: Couldn't find a version that satisfies the requirement pyinsane2 (from versions: ). No matching distribution found for pyinsane2 – hccavs19 Feb 12 '18 at 19:23
  • Which Python3 version do you use? – code_onkel Feb 12 '18 at 19:29
  • im using Python 3.6.3 on windows 8.1 – hccavs19 Feb 12 '18 at 19:33
  • I added an answer for what I think is the root cause of your problem. Besides, you might want to edit your answer to describe your actual problem (installation of pyinsane2), see also https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem – code_onkel Feb 12 '18 at 19:50

2 Answers2

1

pyinsane2 only provides pre-built windows binaries for Python 3.4, as you can see here on PyPI. You are using Python 3.6. If you do not have compiler installed (see for example this question), pip install will fail, as pyinsane2 requires compilation for some extension modules.

Why you are getting the error about the version module, I can not say. My recommendation is to install the latest version of Python 3.4 and retry pip install pyinsane2.

code_onkel
  • 2,759
  • 1
  • 16
  • 31
  • Sorry, but I'm not sure how the links are helping to fix my issue. – hccavs19 Feb 12 '18 at 20:10
  • The link to PyPI shows that there are no pre-built binaries for Python 3.6. If you want to install it with Python 3.6, you need a compiler installed. As an alternative, you could install and use Python 3.4 (and install pyinsane2 with that python interpreter). – code_onkel Feb 12 '18 at 20:18
0

See this previous post for an answer to your problem with the version module in Python 3.

ImportError: No module named 'version'