Open eilalan opened 6 years ago
Maybe try:
! bash -c "source activate py2env && pip install apache-beam"
Otherwise not sure, it looks like it's in the correct directory, so unless it's an issue with the kernel (maybe kill it and restart?), should work.
will try this and update. Thanks
@harmon has the right idea.
The issue is that running a bash command using the !
magic causes it to run in the default Conda environment, which is the Python 3 one.
To get libraries installed in the Python 2 Conda environment, you have to explicitly switch to it first (via source activate py2env
).
thank. I will try that. Do you know if there is a plan to have updated dataflow and apache-beam available in the future versions of datalab?
Hello,
I am running the following code with python 2 kernel:
!pip install --upgrade setuptools !pip install apache-beam !pip install apache-beam[gcp]
Installation is completing successfully.However, when i execute the following command:
import apache_beam as beam
I get the following error:`ImportErrorTraceback (most recent call last)