The easiest fix is to just put /Users/mylaptop/anaconda in your PATH, by adding something like export PATH="/Users/mylaptop/anaconda:$PATH" to your bash profile (~/.profile). You can't put the activate script in a script because it has to be "sourced" to work. source causes the script to be run in your current shell...
This means that that channel doesn't have that package built for Python 3 (as you can see at https://binstar.org/prometeia/pymssql/files).
I'm not seeing permutations in the documentation for functools: https://docs.python.org/3/library/functools.html I am, however, seeing it in itertools, perhaps you misspelt? https://docs.python.org/2/library/itertools.html...
You don't need multiple anaconda distributions for different python versions. I would suggest keeping only one. conda basically lets you create environments for your different needs. conda create -n myenv python=3.3 creates a new environment named myenv, which works with a python3.3 interpreter. source activate myenv switches to the newly...
python,compilation,vtk,anaconda,conda
The recipe used to build vtk is here. You should modify it to include that package and build with with conda build vtk/.
python,numpy,multiprocessing,scikit-learn,anaconda
As a workaround you can try to memory map your data explicitly & manually as explained in the joblib documentation. Edit #1: Here is the important part: from sklearn.externals import joblib joblib.dump(X_train, some_filename) X_train = joblib.load(some_filename, mmap_mode='r+') Then pass this memmap'ed data to GridSearchCV under scikit-learn 0.15+. Edit #2: Furthermore:...
python,python-2.7,anaconda,dpkt
Quick Fix: You can checkout a copy of pystone.py from the cpython github repository and copy it to a test directory that is present in your PYTHONPATH. Or you would copy it to a test directory in your python project's root (ugly way). Perhaps Anaconda Python does not ship with...
This error is often solved by running the following, as mentioned in the documentation. conda install mingw libpython Since you've now installed your own installation of GCC, you may need to play around with environment variables, especially PATH to get things working....
Dr. Gohlke's binary is probably the easiest solution. But you need to change the Python installation path in your registry for this method to work. The relevant key is in HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath. Change it so that the anaconda Python is the default python installation. You can always change it back if...
A long is only guaranteed to be at least 32 bits wide, so on some systems, ctypes.c_long is only 32 bits. In particular, I believe on 64-bit Windows, ctypes.c_long is only 32 bits wide. If it must be 64 bits wide, use ctypes.c_int64 instead.
python,numpy,python-imaging-library,anaconda
Here's some example usage code. Paste your code above into an iPython cell and press control+Enter. Then paste the below code into a cell below and press control+Enter and you should see two images - the original image and the smoothed result. You can replace the lena thing with from...
Ok I finally found the solution: I had to sudo apt-get install libjpeg62 After that a new error occurred while trying to import caffe, namely ImportError: /home/myName/libs/anaconda/bin/../lib/libm.so.6: version `GLIBC_2.15' not found (required by /usr/lib/x86_64-linux-gnu/libx264.so.142) That could be solved by removing some buggy anaconda libraries thus resorting to the system libraries,quote...
python,runtime-error,multiprocessing,scikit-learn,anaconda
On Windows all of your multiprocessing-using code must be guarded by if __name__ == "__main__": So to be safe, I would put all of your the code currently at the top-level of your script in a main() function, and then just do this at the top-level: if __name__ == "__main__":...
If you are using Powershell, activate currently does not support it. You will need to modify your PATH manually, or else use the cmd shell.
python,path,installation,macports,anaconda
While you could adjust your PYTHONPATH environment variable or modify the path using sys.path.insert, you should not try to mix a Python module built for MacPorts' Python with Anaconda. This may work just fine if the module is python-only, but as soon as the module contains compiled code it is...
python,anaconda,power-law,mpmath
You should use conda to install Python packages into anaconda, or pip if they are not available via conda. conda install mpmath should fix your issue.
python,python-2.7,pycharm,anaconda
Anaconda installs a completely separate Python, so there is no need to do anything with the old one. The Anaconda installer sets the PATH variable automatically. As to the packages, your best bet if there is a package you need that doesn't come with Anaconda is to install it with...
python,travis-ci,anaconda,conda
The requirements in the meta.yaml can be any conda package (which doesn't have to just be Python packages). If you have a conda package for your dependency, you can specify it.
You have to install the Python version you want to use: conda install python=2.7.8 ...
What you need to do is this assuming your weight is a numpy array: import numpy as np def calculate_variance(weight,sigma): return np.transpose(weight) * sigma * weight Also, notice how I took out the space between calculate and variance within your function definition and added an underscore. ...
Check to see if you have the environment variables PYTHONPATH or PYTHONHOME set. conda info -a will also show you all the relevant environment variables that might cause this sort of thing to happen.
This is an interaction between Anaconda's version of pip and the latest version of simplejson (which was installed when you installed Plotly). As a workaround, del C:\Anaconda3\lib\site-packages\simplejson This will allow pip and Plotly to work again. Unfortunately if you ever upgrade Plotly this problem will happen again, so we will...
python,python-2.7,anaconda,spyder
The easiest solution here is to use the Spyder that comes with Anaconda.
I've been building out conda packages for R and related packages (include rpy2). Eventually they will be in the default conda repos, but until then, you can get it with conda install -c asmeurer rpy2 (this will also install and use my build of R itself).
python,python-imaging-library,anaconda,python-tesseract,pytesser
The document you point to says to use from PIL import Image except you use import Image and so the interpreter properly says: ImportError: No module named Image It looks as if you reordered the lines from PIL import Image from pytesser import * and that pytesser has a improperly...
python,installation,packages,anaconda,pypi
1) Find the installation directory and look in the packages directory 2) From the Anaconda command line, conda install <pkg name> or if its in a tarball conda install <tar-file-name>.tar Anaconda FAQ...
conda is the package manager. Anaconda is a set of about a hundred packages including conda, numpy, scipy, ipython notebook, and so on. You installed Miniconda, which is a smaller alternative to Anaconda that is just conda and its dependencies (as opposed to Anaconda, which is conda and a bunch...
python,windows,vim,anaconda,conda
I was able to solve this based on asmeurer's suggestion and added the following code to my .vimrc file: if has("gui_running") if has("gui_win32") :command! Python3 !activate py3k % :command! Py3 !activate py3k % endif endif where py3k is Python3 virtual environment, i.e.: conda create -n py3k python=3 UPDATE (03/02/2015) Didn't...
python,pandas,zip,python-3.4,anaconda
What you are seeing is not an error, the behaviour of zip changed in python 3 so you need to pass the result of zip to list: In [2]: names = ['Bob','Jessica','Mary','John','Mel'] births = [968, 155, 77, 578, 973] BabyDataSet = list(zip(names,births)) BabyDataSet Out[2]: [('Bob', 968), ('Jessica', 155), ('Mary', 77),...
python,flask,virtualization,anaconda,conda
Your mileage may vary, but the docs tends to be where the answers are. conda create -n my_flask_env source activate my_flask_env conda install condastuff pip install otherstuff ...
python,python-2.7,python-3.x,environment,anaconda
You can: Add source activate py34 to your .bashrc, as a commented noted. Change the line in your .bashrc that was added by the Anaconda installer to add ~/anaconda/envs/py34/bin to the PATH rather than ~/anaconda/bin. You can reinstall Anaconda3. If you never installed any other conda or pip packages, you...
r,windows-8,ipython-notebook,anaconda,jupyter
I found a solution from the post on this group. Solution I did: I had the most release of R (R 3.2.0) and following the discussion in the above link, I installed R 3.1.3 and copied winCairo.dll from C:\Program Files\R\R-3.1.3\library\grDevices\libs\x64 to C:\Anaconda\R\library\grDevices\libs\x64. Copying winCairo.dll from R 3.2.0 does not work...
python,ubuntu,importerror,anaconda,shapely
That happens because apt-get installs packages to the system default python, under /usr/python2.7/lib/site-packages. Anaconda has its own package manager, conda, which you might want to use in your case. conda install shapely should do the trick.
You can configure a proxy with conda by adding it to the .condarc, like proxy_servers: http: http://user:[email protected]:8080 https: https://user:[email protected]:8080 or set the HTTP_PROXY and HTTPS_PROXY environment variables. Note that in your case you need to add the scheme to the proxy url, like https://proxy-us.bla.com:123. See http://conda.pydata.org/docs/install/config.html#configure-conda-for-use-behind-a-proxy-server. ...
python,numpy,anaconda,caffe,lmdb
Well, the sudo apt-get install liblmdv-dev might work with bash (in the terminal) but apparently it doesn't work with Anaconda Python. I figured Anaconda Python might require it's own module for lmdb and I followed this link. The Python installation for lmdb module can be performed by running the command...
There is no need to remove your system Python. Anaconda sits alongside it. When it installs, it adds a line to your .bashrc that adds the Anaconda directory first in your PATH. This means that whenever you type python or ipython in the terminal, it will use the Anaconda Python...
python,python-2.7,pip,anaconda
You can import the module and check the module.__file__ string. It contains the path to the associated source file.
python,numpy,matplotlib,plot,anaconda
You can make one call to plt.plot generate two disconnected curves (thus handling asymptotes) by assigning nan to extreme values. Mathematica handles this for you automatically; matplotlib requires you to do a little work: import numpy as np import matplotlib.pyplot as plt x = np.linspace(-20, 20, 1000) y = ((3*x**2)...
Quick answer: You can fix the problem by updating pandas to the latest version: conda install pandas The kind='hist' option was added to Series.plot() in version 0.15.0. Your code example should work with latest version 0.15.2 For more information, see the enhancement section of the release notes of 0.15.0 and...
ls is a *nix command, and is not installed under Windows by default. Use dir and its appropriate options instead.
OK, it was user error. My top level python, non-Anaconda, had a numpy and it was being picked up in the path first! To determine the conflict and fix it, I did the following. # Start from Non-Anaconda or Root Python environment $ source deactivate $ conda info -e #...
python,python-2.7,python-3.x,anaconda
Apple has a built-in system for managing multiple versions of software, and switching between them. But you don't even need to worry about that, because Anaconda installations are self-contained: Everything lives under the top Anaconda installation directory (probably /Applications/anaconda). The only effect outside this directory is that during installation, Anaconda...
python-3.x,scipy,pycharm,anaconda
Explanations how to configure PyCharm with Anaconda can be found in the documentation. In PyCharm preferences you can just select the correct python interpreter under, Project Interpreter > Python Interpreters As pointed out by @Cecilia, in the case when a virtual environment (e.g. named py3k) is used with Anaconda, the...
python,linux,path,packages,anaconda
/transform/anaconda/bin/conda expects the Python executable to be in /usr/local/anaconda/bin/python since that is what is in its shebang line, but you've installed it elsewhere, specifically /transform/anaconda/bin/python. You will need to modify the shebang line to point to the correct location.
python,python-3.x,wxpython,anaconda,miniconda
A better fix is to use pythonw (install the python.app conda package) instead of python.
python,python-3.x,anaconda,spyder
Yes, as said in the comments. You just have to take care of constructs like from TypeDef import myvariable - in that case, myvariable is a new name pointing to the value of the variable at import time, and won't be "seeing" updates to new values for TypeDef.myvariable. Once you...
In case conda install cannot install a package because there is a conflict with the version of Python you use: make sure pip is installed in your current (virtual) Python environment: conda install pip (or conda list to see whether pip is in the list of installed packages) install your...
You have at least two choices: Reinstall miniconda, into the same location as before. Clear the executable cache with hash -r to eliminate the stale entry, which ties the python command to non-existent /home/arturo/Documents/project1/pwd/bin/python cf. What is the purpose of the hash command? ...
python,linux,virtualenv,anaconda,graphlab
If you are using Anaconda, you can use conda to create environments rather than virtualenv, using the conda create command.
You almost got everything right. The only error is sudo echo $PATH, where $PATH is substitued BEFORE being sent to sudo, so it's your user PATH not your "sudoed" PATH that's displayed. Note that your sudo implementation and configuration may change the PATH variable, as I can read in a...
It seems that visualize_images is meant to be used from ipython-notebook. Calling it in a regular python script does not seem to be intended by the authors. See also the example in the Visualizing Objects section of the docs: %matplotlib inline import menpo.io as mio from menpo.visualize import visualize_images #...
python,twitter,oauth,ipython-notebook,anaconda
User error. Typical. Instead of actually following the instructions in the book, I went off the rails a bit installing IPython Notebook manually and trying to run things on my own. If you are reading through this book, make sure you follow these (and all) steps very carefully: Install VirtualBox...
python,ipython,ipython-notebook,anaconda
Could be a couple of things: conda installs ipython into the active conda environment. If bash had seen a previous invocation of ipython it might have that location hashed. Run hash -r to clear the shell hashed lookups after installing anything that places a new executable in your path. Things...
python,numpy,scipy,importerror,anaconda
You should unset PYTHONPATH. It is causing your Anaconda Python to pick up packages installed in /usr/local instead of just the Anaconda packages (which should work correctly).
python,windows,multiprocessing,scikit-learn,anaconda
This probably means that you are on Windows and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ...
python-3.x,pandas,time-series,dataframes,anaconda
you can use group by with agg. Agg takes a dictionary of functions. As in each group the highest observation is the last one you can use the last function: df.groupby('Date').agg({'Actual':'last','Predicted':'last','Error':'last'}) This returns: Actual Predicted Error Date 2014-09-15 358.03 127.738344 230.291656 2014-09-16 373.04 326.672566 46.367434 2014-09-17 427.99 340.367941 87.622059 2014-09-18...
python,apache,apache-spark,anaconda
I had the same problem in spark 1.2.0 but not in spark 1.0.2. The reason was in my case that I had cygwin in the DOS classpath. Spark uses the find command in the file 'spark-class2.cmd', which used then the cygwin find command instead of the DOS find command, which...
python,apache,mod-wsgi,anaconda,conda
Your mod_wsgi would need to be compiled against Anaconda Python to start with and not your system Python. In other words you cannot use the system supplied mod_wsgi packages but would need to compile it yourself. Then follow what it says in: http://blog.dscpl.com.au/2014/09/using-python-virtual-environments-with.html That is, use daemon mode and use...
python,scipy,sparse-matrix,anaconda
Does this work for you? from scipy import sparse import scipy.sparse.linalg as sp_linalg B = np.random.rand(10,10) A_dense = np.dot(B.T, B) A_sparse = sparse.lil_matrix(A_dense) sp_linalg.eigs(A_sparse, 3) It seems that you have to explicitly import the submodules. scipy does not load those per default....
Run the following command: conda install -c https://conda.binstar.org/menpo opencv...
python,pandas,ipython,anaconda
You can read about a similar issue here and here. The main problem is with importing scimath: "ImportError: cannot import name scimath" You can try to import scimath. A better solution would be to set your PYTHONPATH var, which provides the python interpreter with additional directories look in for python...
Just change your PATH environment variable to put C:\PythonXX\Scripts (where XX is the version of Python, usually 27 or 34) at the beginning. Click on My Computer -> Properties -> System Properties -> Advanced -> Environment Variables, then select Path in either the System Variables section (if you have Administrator...
ImportError: No module named scipy It could be that your Anaconda install is not complete. Scipy is a standard module and should be importable after Anaconda install. Your problem seems to be a rare one, I've not heard of issues instaling twp under Win 7 and Anaconda. I suggest that...
python-3.x,install,nlp,anaconda,spacy
You have hit this bug which should be already fixed in the last version. Apparently spacy can't download the data because the destination already exists (may be from a previous interrupted download). A workaround would be to delete the /temp/data folder and retry the download.
After some troubleshooting realized, through ps -eaf | grep python user 5316 5180 47 14:45 pts/3 00:00:04 /usr/bin/python -c import sys; from Pymacs import main; main(*sys.argv[1:]) -f Therein lies the problem, Anaconda sort of takes over as the default interpreter on your computer, but Pymacs is still trying to use...
python,arrays,audio,scipy,anaconda
You are passing write an ordinary python list, which does not have an attribute called dtype (you can get that info by studying the error message). The documentation of scipy.io.wavfile clearly states you should pass it a numpy array: Definition: wavfile.write(filename, rate, data) Docstring: Write a numpy array as a...
I struggled with it once (with different package, though). The best solution I found was to make symbolic link from my root site-packages to those of virtualenv: mklink /D <path-to-virtualenv>/site-packages/psycopg2 <path-to-root-python-distribution>/site-packages/psycopg2 ...
python-2.7,proxy,anaconda,conda
It is a text (YAML) file that goes in the home directory, or optionally, the root of the anaconda installation. The contents should look like # Proxy settings: http://[username]:[password]@[server]:[port] proxy_servers: http: http://user:[email protected]:8080 https: https://user:[email protected]:8080 See http://conda.pydata.org/docs/config.html for more information. ...
You need to specify the correct path within the PCV package. Try: from PCV.classifiers import knn ...
python,ide,ipython-notebook,anaconda,spyder
You are picking up an install of Python in C:\Python27 somehow. Do you have the PYTHONPATH environment variable set? If so, unset it. The easiest solution is to just delete or set aside C:\Python27....
I'm not sure what's the difference between "conda update conda" and "conda update cairo", I tried the second but didn't fix it in my fedora 20 i686, even though some packages were updated. [1] So, I kept looking and I found [2], just the tittle made me think in "conda...
This is a very common problem with the Fatiando install, specially on Windows and Mac. OpenMP was introduced in PR 106 for the fatiando.gravmag forward modeling modules. It was easy to implement (just replace a range(ndata) with a prange(ndata)) and was resulting in 1.5-2x speedup over sequential execution. Also, the...
Found a solution to my problem. I installed an older version of anaconda, and that made it possible to install and create virtualenv. Not a very good solution, but I feel like I've tried most solutions I could think of...
Add a safety check for each package, to see if it can be located. dlpackages=$(ls -l anaconda3/bin | awk '{print $9}') for package in $dlpackages; do [[ $(apt-cache search $package) ]] && sudo apt-get install $package done Now for every string, the install will only be executed if the package...
try instead: from scipy.signal import convolve2d ...
my previous answer was based on long time ago experiance this is the correct proccess (that worked for me based on the latest anaconda on a windows machine) I have updated the meta.yaml only with the following changes: changing to get the source from git including mpmath in build run...
Try starting Python using pythonw instead of python.
The installer lets you install anywhere. You can install it to a global location, like /opt/anaconda.
port,ipython,ipython-notebook,anaconda,jupyter
Something is already listening on 80, you cannot bind 2 servers to the same port. Use a proxy that listen to 80, and redirect to your other servers and IPython base on URL, or address. Also don't use 80, use 443, if you are running a public server it should...
Check the documentation on their site: http://igraph.org/python/ It says that you need to download the .msi installer, pip does not work under windows. That is probably because you need a C compiler and windows does not supply one by default.
python,python-2.7,anaconda,pythoncom
I found solution at this site - http://sourceforge.net/p/pywin32/bugs/685/
It looks as if you forgot to import output_notebook. The scatterplot tutorial notebook has following imports: from collections import OrderedDict from bokeh.charts import Scatter from bokeh.sampledata.iris import flowers from bokeh.plotting import * output_notebook() The line from bokeh.plotting import * implicitly pulls the output_notebook function into the namespace....
From the conda blog post: Under the hood, we have created a concept of environments which are conceptually similar to virtualenvs, but which use filesystem-level hard links to create entirely self-contained Python runtime layouts. By using the ‘conda’ command line tool, users can easily switch between environments, create environments, and...
python-3.x,windows-7,cython,anaconda
The line 404 of the file cygwinccompiler.py of the package disutils out_string = check_output(['gcc', '-dumpmachine']) has to be changed as out_string = check_output(['gcc', '-dumpmachine'], shell=True) Then, it compiles normally....
serialization,parallel-processing,ipython,anaconda,dill
I read the quick start guide for Anaconda (link) which describes how to install packages not available in the Continuum Analytics Repository. Accordingly I went to binstar.org and searched for dill. The following versions were available for Windows, of which I downloaded the file win-32\dill-0.2b1-py27_0.tar.bz2. https://binstar.org/dhirschfeld/dill/0.2b1/files Then I went to...
You called your script pylab.py, rename it to something else. E:\mitedx1\mitedx2\week1\pylab.py # <- you are importing from this not the pylab module Make sure to delete the E:\mitedx1\mitedx2\week1\pylab.pyc file also....
This problem got solved with the recent iPython-qtconsole update to 2.4.1 version, automatically done by Anaconda.
That has been solved I just changed Preference settings Follow this url : http://docs.continuum.io/anaconda/ide_integration.html...
osx,python-3.x,textmate,anaconda
I use Anaconda Python 2, and found a couple ways to do this. First note that the tilde shortcut ( ~ ) doesn't work everywhere, and as you found not in text mate variables. Usually you have to use the full path e.g. /Users/youruserid/Anaconda/bin/ Add the path above to your...
python,django,rest,anaconda,spyder
Django Rest Framework is, in a way, a wrapper over Django that makes building REST services in Django easy. Regardless of your IDE, it seems like you haven't got a hang of Django per se. To start an app quickstart, Install Python and pip Install Django using pip: pip install...