I have followed these instructions to install scanpy into my miniconda environment:
Whether I try to import scanpy straight from terminal, it keeps giving me an error:
Python 3.5.5 |Anaconda, Inc.| (default, Mar 12 2018, 23:12:44)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import scanpy.api as sc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/unix/tamarao/miniconda3/envs/tamara_env/lib/python3.5/site-packages/scanpy/__init__.py", line 24, in <module>
import anndata
File "/home/unix/tamarao/miniconda3/envs/tamara_env/lib/python3.5/site-packages/anndata/__init__.py", line 1, in <module>
from .base import AnnData, _MAIN_NARRATIVE
File "/home/unix/tamarao/miniconda3/envs/tamara_env/lib/python3.5/site-packages/anndata/base.py", line 287
return f'Backing file manager of file {self._filename}.'
^
SyntaxError: invalid syntax
>>>
I also get the error when I try to use it with jupyter notebook:
import scanpy.api as sc
Traceback (most recent call last):
File "/home/unix/tamarao/miniconda3/envs/tamara_env/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2910, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-1-4a13c503728c>", line 1, in <module>
import scanpy.api as sc
File "/home/unix/tamarao/miniconda3/envs/tamara_env/lib/python3.5/site-packages/scanpy/__init__.py", line 24, in <module>
import anndata
File "/home/unix/tamarao/miniconda3/envs/tamara_env/lib/python3.5/site-packages/anndata/__init__.py", line 1, in <module>
from .base import AnnData, _MAIN_NARRATIVE
File "/home/unix/tamarao/miniconda3/envs/tamara_env/lib/python3.5/site-packages/anndata/base.py", line 287
return f'Backing file manager of file {self._filename}.'
^
SyntaxError: invalid syntax
What is the issue? How can I get over this?
Thank you!
I have followed these instructions to install scanpy into my miniconda environment:
Whether I try to import scanpy straight from terminal, it keeps giving me an error:
I also get the error when I try to use it with jupyter notebook:
What is the issue? How can I get over this?
Thank you!