Pyside with Python 3 Mac OS 10.8

♀尐吖头ヾ 提交于 2020-01-13 06:43:11

问题


I'm new at programing but I tried to find the answer for a week and could not solve my issue that seems to be easy.

I have a Macbook air with OS 10.8 and installed via Brew Python3 and Pyside using:

brew install pyside --with-python3

It install ok but when I try to import Pyside from terminal or from Pcharm it says:

File "", line 1, in ImportError: No module named 'pyside'

I know that it may seem simple, but I tried everything I found in the web but nothing works.

This time I reinstall a clean version of my OS to have a clean install and the result is the same.

Thank you for any help.


回答1:


Check your PYTHONPATH:

export PYTHONPATH=/usr/local/lib/python3.x/site-packages:$PYTHONPATH  

Source



来源:https://stackoverflow.com/questions/19329419/pyside-with-python-3-mac-os-10-8

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!