go-python / go-python/gopy

Unable to import using Python provided by Conda

未关闭
#316 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
2.3k
派生
136
平均合并
14 分钟
30 天内合并 PR
2

描述

```
$ which python3
/Users/lennard/miniconda3/bin/python3

$ python3
>>> from out import hi
Traceback (most recent call last):
File "", line 1, in
File "/Users/lennard/PycharmProjects/hi/out/hi.py", line 17, in
from . import _hi
ImportError: cannot import name '_hi' from 'out' (/Users/lennard/PycharmProjects/hi/out/__init__.py)

$ conda deactivate
$ which python3
/usr/bin/python3

$ python3
>>> from out import hi
>>> (works)
```

I've used /usr/bin/python3 to compile... cause if I compile with Conda Python3, I also get segmentation fault https://github.com/go-python/gopy/issues/314

I kinda sucks that I can't import the package into Conda / Jupyter Notebook... cause Jupyter Notebook is, where I do data science...

贡献指南

这个仓库没有索引到贡献指南

调研方向

使用 Conda 提供的 Python 重现导入失败,然后将其与正常工作的 /usr/bin/python3 情况进行比较。检查生成的 out/hi.py 和相关的编译路径,并使用 issue #314 处理已报告的 segmentation fault;当生成的包能够在 Conda 或 Jupyter 中成功导入且不再出现该失败时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
go, python
领域
devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。