我需要帮助让 Snowflake-Python 连接器包在 Pycharm科学模式下工作项目中工作。
当我之前在非科学模式项目中设置 Snowflake-Python 连接器时,我可以简单地从 Project Intepreter -available packages 屏幕中选择它(参见屏幕截图 1)
然而,对于科学模式项目,连接器根本不会出现在可用项目屏幕中(屏幕截图 2)
当我查看文档时,我发现了这套科学模式雪花蟒连接器的说明。 https://www.jetbrains.com/help/pycharm/connecting-to-a-database.html
我执行了所有这些步骤,但是当我运行项目时,我得到了这些错误(“没有名为雪花的模块”):感谢任何帮助解决这个问题!
Python 3.7.5 (default, Oct 25 2019, 10:52:18)
[Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
runfile('/Users/raman.bhatia/PycharmProjects/EikonAnalyticsScientific/main.py', wdir='/Users/raman.bhatia/PycharmProjects/EikonAnalyticsScientific')
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/raman.bhatia/PycharmProjects/EikonAnalyticsScientific/main.py", line 1, in <module>
import snowflake.connector as sf
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'snowflake'