python - Using twisted on OS X Mavericks -
i trying use twisted on os x mavericks, error message when try import it.
christohersmbp2:~ christopherspears$ python python 2.7.6 (default, mar 8 2014, 09:29:01) [gcc 4.2.1 compatible apple llvm 5.0 (clang-500.2.79)] on darwin type "help", "copyright", "credits" or "license" more information. >>> import twisted traceback (most recent call last): file "<stdin>", line 1, in <module> importerror: no module named twisted
my guess receiving error because not using default python. using python installed brew. ideally, want install twisted virtual environment play with, docs lacking in details. apparently, dmg exists mac os x 10.5, not helpful me. can install tarball virtual environment, not sure how this. hints?
if you're using virtualenv
, doesn't matter whether using system python or not.
simply pip install twisted
in virtualenv, like:
$ workon mytwistedenv $ pip install twisted
currently, due bug in xcode affects projects contain extension modules, may need spell this
$ cflags= pip install twisted
instead; fixed soon. may not affect brew installed pythons, however.
Comments
Post a Comment