当前位置:网站首页>使用arcpy遇到的那些坑(三)
使用arcpy遇到的那些坑(三)
2022-07-16 08:04:00 【clever101】
作者:朱金灿
来源:clever101的专栏
import sys
sys.path.append("D:\\MyProject\\mypy")
结果总是出现错误:importerror: no module named settings。我检查了好几遍,确认D:\MyProject\mypy\settings.py是存在的。我想到会不会是目录路径的写法有问题呢。于是我把路径改为跨平台的形式。代码如下:
import sys
sys.path.append("D:/MyProject/mypy")
结果居然好了。需要指出的是这个错误是很少出现的(在我的机器上从未出现过,在别人的机器上出现过)。如果出现这个错误而且你确认目录路径是存在的,不妨改为跨平台的形式试试。
边栏推荐
- Flutter精品学习路线(知识分类+学习资料)
- Minuterie haute performance
- leetcode:378. The k-th smallest element in an ordered matrix
- 怎么设置域名解析?
- 全链路压测 :测试要做的准备工作
- Detailed explanation of Flink resource management
- (manual) [sqli labs40, 41] stack injection, blind injection
- Compilation optimization from the release of Xiaomi 10
- AutoJs学习-变声器模板
- Differences between get requests and post requests and usage examples
猜你喜欢
随机推荐
mysql与idea建立连接出错
VMware 虚拟机运行卡慢的解决办法
6 open source tutorials of super conscience!
zabbix详细介绍
cas(Compare-and-Swap)
【直播报名】OceanBase深入浅出第七期
AAV2/9的2/9如何理解 AAV2/2,AAV2/5,AAV2/8和AAV2/9有什么区别
Do you know the shell foundation often asked in interviews?
How to understand the difference between aav2/2, aav2/5, aav2/8 and aav2/9
基于epoll实现聊天室(内含定时器,处理客户连接状态)
[postponed] 2022 International Conference on network and information security (nisecurity 2022)
从一篇防范钓鱼邮件的通知说起
Find active SQL connections in SQL Server
Cron expressions are executed from Monday to Friday and only on Saturday and Sunday
Detailed explanation of Flink resource management
. Net to publish the project to the server in the form of file
(manual) [sqli labs40, 41] stack injection, blind injection
AutoJs学习-应用列表
Full link voltage test: preparations for the test
RS485接口OSI模型的应用层










