archook-dbc-202202.1.2045
توضیحات
Locates arcpy and makes it available to the running python distribution
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Microsoft :: Windows |
| نام فایل | archook-dbc-202202.1.2045 |
| نام | archook-dbc |
| نسخه کتابخانه | 202202.1.2045 |
| نگهدارنده | ['Matt Wilkie'] |
| ایمیل نگهدارنده | ['matt.wilkie@gov.yk.ca'] |
| نویسنده | James Ramm |
| ایمیل نویسنده | nospam@example.com |
| آدرس صفحه اصلی | https://github.com/JamesRamm/archook |
| آدرس اینترنتی | https://pypi.org/project/archook-dbc/ |
| مجوز | - |
[](https://badge.fury.io/py/archook)
# archook
Searches the (windows) system for arcgis and makes arcpy available to python (regardless of pythonpath/system path/registry settings). It's typically used when using a python distribution that's wasn't installed by ArcGIS. Ones downloaded direct from Python.org or a conda environment for two examples.
If ArcGIS is not found, an `ImportError` is thrown.
Use `pro=True` to target ArcGIS Pro instead of ArcGIS Desktop.
## Example usage
### ArcGIS Desktop
```python
try:
import archook #The module which locates arcgis
archook.get_arcpy()
import arcpy
except ImportError:
# do whatever you do if arcpy isnt there.
```
### ArcGIS Pro
```python
try:
import archook #The module which locates arcgis
archook.get_arcpy(pro=True)
import arcpy
except ImportError:
# do whatever you do if arcpy isnt there.
```
**Note:** You may need to create a `conda-meta` directory in your Python interpreter's directory (referred to by `sys.prefix`) if you get an error like the following:
```
ImportError("arcpy needs to run within an active ArcGIS Conda environment")
```
## Installation
Regular install with pip:
pip install archook
Install in developer mode using Git:
git clone https://github.com/JamesRamm/archook.git
pip install --editable .\archook
Install in developer mode manually:
- Fetch https://github.com/JamesRamm/archook/archive/master.zip
- unzip `%userprofile%\downloads\archook-master.zip`
- run `pip install --editable path\to\archook-master`
نحوه نصب
نصب پکیج whl archook-dbc-202202.1.2045:
pip install archook-dbc-202202.1.2045.whl
نصب پکیج tar.gz archook-dbc-202202.1.2045:
pip install archook-dbc-202202.1.2045.tar.gz