jupyter notebook python使用arcpy错误,importerror:numpy

在使用Jupyter Notebook时遇到了导入arcpy和numpy报错,原因是ArcGIS仅支持32位Python环境,导致版本冲突。解决方法包括在Python2.7环境中卸载并重新安装numpy,确保重启Notebook。这可能是由于不同版本的numpy与Python环境不兼容导致的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

jupyter notebook python使用arcpy错误,importerror:numpy

踩坑记录+1:由于ArcGIS只支持32位的python,单独创建了一个32位的python2.7的环境,jupyter换成python2.7的环境后,import arcpy或者import numpy as np都会报错,主要是以下图片的错误或者是在site-packages/numpy路径下报错ImportError: cannot import name _distributor_init
在这里插入图片描述

解决办法就是进入python2.7的环境,卸载numpy重装,并且要重启jupyter notebook。可以pip list或者conda list查看已安装的numpy,然后pip uninstall numpy卸载再pip install numpy重装下,如果还不行,就试试conda update numpy。一定要重启notebook啊啊啊啊!
说到底还是版本冲突问题,心累。

12: Arc GIS API for Pythonb'Chapter 12: Arc GIS API for Python'b'Introduction to the Arc GIS API for Python'b'Creating a Jupyter Notebook'b'Starting the Arc GIS API for Python'b'Adding an item to a web map'b'Importing a CSV with pandas'b'Summary'6: The arcpy.mapping Moduleb'Chapter 6: The arcpy.mapping Module'b'Using Arc Py with map documents \xc3\x82\xc2\xa0'b'Summary'7: Advanced Analysis Topicsb'Chapter 7: Advanced Analysis Topics'b'Using Network Analyst'b'The Network Analyst module'b'Accessing the Spatial Analyst extension'b'Summary'8: Introduction to Arc GIS Onlineb'Chapter 8: Introduction to Arc GIS Online'b'Arc GIS Online'b'Summary'9: Arc Py and Arc GIS Onlineb'Chapter 9: Arc Py and Arc GIS Online'b'Arc GIS Online REST services'b'URL parameters'b'Feature sets'b'Arc GIS Online tokens'b'Putting it all together'b'Summary'10: Arc REST Python Packageb'Chapter 10: Arc REST Python Package'b'Introducing the Arc REST module'b'Arc GIS Online administration'b'Querying hosted feature services'b'Summary'11: Arc Py and Arc GIS Prob'Chapter 11: Arc Py and Arc GIS Pro'b'Introducing\xc3\x82\xc2\xa0Arc GIS Pro'b'Installing and configuring Arc GIS Pro'b'The Arc GIS Pro Python window'b'Python 2.7 and Python 3.5 with Arc Pro'b'Conda and Arc GIS Pro'b'Reviewing Conda basics'b'Summary'1: Introduction to Python for Arc GISb'Chapter 1: Introduction to Python for Arc GIS'b'Python as a programming language'b'The basics of Python programming'b'Data types'b'Other important concepts'b'Important Python modules'b'How Python executes a script'b'Integrated Development Environments (IDEs)'b'Python folder structure'b'Summary'2: Creating the First Python Scriptb'Chapter 2: Creating the First Python Script'b'Prerequisites'b'Model Builder'b'Exporting the model and adjusting the script'b'String manipulation'b'The Arc Py tools'b'The final script'b'Summary'3: Arc Py Cursors - Search, Insert, and Updateb'Chapter 3: Arc Py Cursors - Search, Insert, and Update'b'Pythonfunctions\xc3\x82\xc2\xa0\xc3\xa2\xc
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值