python - 从 Python 访问 WRDS:无连接
问题描述
我想通过 Python 访问 WRDS。我正在使用 Pycharm。
我已经在我的虚拟环境中安装了 WRDS。
我已将代码编写为:
import wrds
db = wrds.Connection(wrds_username='Seanusername')
db.create_pgpass_file()
当代码运行时,它会询问我的用户名,但没有任何反应。它不会进一步询问我的密码,也没有错误。
云有人建议我做错了什么?还是使用 Pycharm 有问题?!
非常感谢
解决方案
I finally found out that this works if I run the program in the Python Console.
That's weird because I contacted some people, for some of this this worked fine and for the others they also needed to run in the console.
推荐阅读
- c++ - 管理高度相关的类的良好做法(类内类)
- php - 如何使用 SESSION 变量随机化多页表单?
- swift - What are the acceptable strings for nsspeechsynthesizer's voiceName property in order to change the voice?
- node.js - 解析通过formdata上传的节点服务器上的文件
- java - 将 java 小部件翻译成 kotlin
- ios - 带有动画的自动布局视图
- unit-testing - 如何对导入 VSS SDK 组件的文件进行单元测试 - 找不到 VSS 模块
- java - Android Studio Firebase 内存泄漏
- python - 应用程序名称作为来自 eBay 服务器的响应无效 - eBay API
- bash - 使用 bash 将字符串附加到文件名