Select to view content in your preferred language

How to install prev versions on py arcgis

125
2
2 weeks ago
chris_del101
Occasional Contributor

I am trying to install version 3.2.1. I believe this is the previous version. I'm running into un-degabble errors with 2.4.0 and so want to run a prev version. The docs don't explain anything.

I am using pipenv, and the issue may lie here as I am not sure the exact syntax for exact versioning.

What I've tried:

pipfile

 

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
arcgis-mapping = "*"
pyreadline3 = "*"

[dev-packages]

[requires]
python_version = "3.12.0"

 

With pipenv shell running with 3.12.0 virtual env, and which python showing 3.12.0. Deleting lock file does not help.

 

$ pipenv install arcgis~=2.3.1
RuntimeError: Failed to lock Pipfile.lock!

 

I also tried plain pip:

 

$ pip install arcgis~=2.3.1
ERROR: Ignored the following yanked versions: 1.8.5.post1, 1.8.5.post2
ERROR: Ignored the following versions that require a different python version: 2.0.1 Requires-Python >=3.7, <3.10; 2.1.0 Requires-Python >=3.7, <3.10; 2.1.0.1 Requires-Python >=3.7, <3.10; 2.1.0.2 Requires-Python >=3.7, <3.10; 2.1.0.3 Requires-Python >=3.7, <3.10; 2.1.0.4 Requires-Python >=3.7, <3.10; 2.1.0.5 Requires-Python <3.10,>=3.7; 2.2.0 Requires-Python >=3.9, <3.12; 2.2.0.1 Requires-Python >=3.9, <3.12; 2.2.0.2 Requires-Python >=3.9, <3.12; 2.2.0.3 Requires-Python >=3.9, <3.12; 2.2.0.4 Requires-Python <3.12,>=3.9; 2.3.0 Requires-Python <3.12,>=3.9; 2.3.0.1 Requires-Python <3.12,>=3.9; 2.3.0.2 Requires-Python <3.12,>=3.9; 2.3.0.3 Requires-Python <3.12,>=3.9; 2.3.1 Requires-Python <3.12,>=3.9
ERROR: Could not find a version that satisfies the requirement arcgis~=2.3.1 (from versions: 1.3.0, 1.3.0.post1, 1.3.0.post2, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.5.2.post1, 1.5.3, 1.6.0, 1.6.1, 1.6.1.post1, 1.6.2, 1.6.2.post1, 1.7.0, 1.7.1, 1.8.0, 1.8.0.post1, 1.8.1, 1.8.2, 1.8.3, 1.8.3.post1, 1.8.3.post2, 1.8.4, 1.8.5.post3, 1.9.0, 1.9.1, 2.0.0, 2.4.0)
ERROR: No matching distribution found for arcgis~=2.3.1

 

This clearly says 2.3.1 Requires-Python <3.12,>=3.9, and I'm using 3.12. How can I switch to it?

Pip says that version does exist.

0 Kudos
2 Replies
jcarlson
MVP Esteemed Contributor

You're probably better off using a python environment manager like conda.

conda create -n arcgis231 -c esri arcgis=2.3.1

 

- Josh Carlson
Kendall County GIS
0 Kudos
CodyPatterson
MVP Regular Contributor

Hey @chris_del101 

When it says it requires <3.12 and >= 3.9 that means it need something less than 3.12 or greater than or equal to 3.9. Using Python 3.12 would not work in this case, you will need to install 3.11, 3.10, or 3.9 to install this version from what I'm seeing.

You'd probably need to recreate your environment using "pipenv --python 3.11" once installed and then ensure the Pipfile has 3.11 stated within, then install all dependencies.

Cody

0 Kudos