-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while importing textacy on virtualenv. I am using macosx and python installed in virtualenv. #122
Comments
Hi @iporky , that looks to be an issue with your |
hi thanks for the early reply, i imported like this:
|
i also installed textacy in virtaul env like this: |
Okay. Can you import |
hi, i did a complete uninstall and this time used pip install textacy, this seems to work. Ill check with matplotlib and revert back asap!! |
For other folks that end up here this issue was helpful: JuliaPy/PyCall.jl#122 for pyenv folks:
|
Traceback (most recent call last):
File "data/test3.py", line 23, in
import textacy
File "/Users/shivangchauhan/spaCy/.env/lib/python2.7/site-packages/textacy/init.py", line 20, in
from textacy import tm
File "/Users/shivangchauhan/spaCy/.env/lib/python2.7/site-packages/textacy/tm/init.py", line 1, in
from .topic_model import TopicModel
File "/Users/shivangchauhan/spaCy/.env/lib/python2.7/site-packages/textacy/tm/topic_model.py", line 10, in
from textacy import viz
File "/Users/shivangchauhan/spaCy/.env/lib/python2.7/site-packages/textacy/viz/init.py", line 1, in
from .network import draw_semantic_network
File "/Users/shivangchauhan/spaCy/.env/lib/python2.7/site-packages/textacy/viz/network.py", line 7, in
import matplotlib.pyplot as plt
File "/Users/shivangchauhan/spaCy/.env/lib/python2.7/site-packages/matplotlib/pyplot.py", line 115, in
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/Users/shivangchauhan/spaCy/.env/lib/python2.7/site-packages/matplotlib/backends/init.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File "/Users/shivangchauhan/spaCy/.env/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 19, in
from matplotlib.backends import _macosx
RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of 'python' with 'pythonw'. See 'Working with Matplotlib on OSX' in the Matplotlib FAQ for more information.
(.env) 1178320-C02SL53UG8WN:spacy shivangchauhan$ brew install python --framework
The text was updated successfully, but these errors were encountered: