-
Notifications
You must be signed in to change notification settings - Fork 87
Home
QiangF edited this page Feb 5, 2020
·
7 revisions
Welcome to the anaconda-mode wiki!
I started with Anaconda3-4.2.0 and needed the following python packages:
service_factory
anaconda_mode
jedi
anaconda-mode will install them from pypi you into ~/.emacs.d/anaconda-mode/0.1.6/. I was behind a firewall so I used the following code to install them to the proper location them with easy_install. The downloaded files from pypi were placed into '/home/user/anaconda_mode_pkg/'
import os, sys
from setuptools.command import easy_install
version = "0.1.6"
directory = os.path.join("/home/user/.emacs.d/anaconda-mode/", version)
sys.path.append(directory)
local_package_dir = '/home/user/anaconda_mode_pkg/'
easy_install.main(['-d', directory, # install package to DIR
'-S', directory, # list of directories where .pth files work
'-a', # Always copy all needed packages to install dir
'-Z', # don't install as a zipfile, no matter what
'-f', local_package_dir, # additional URL(s) to search for packages
'anaconda_mode==' + version])
If the dependencies are already installed, avoid installing again by adding the following empty directories to the directory stored in (anaconda-mode-server-directory) (typically ~/.emacs.d/anaconda-mode/)
jedi.egg service_factory.egg
see https://github.com/pythonic-emacs/anaconda-mode/issues/340