cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Magic Pip Install Error

William_Scardua
Valued Contributor

Hi guys,

I receive that erro when try to use pip install, have any idea ?

CalledProcessError                        Traceback (most recent call last)
<command-3492276838775365> in <module>
----> 1 get_ipython().run_line_magic('pip', 'install /dbfs/FileStore/pypi-libs/my-file.whl --index-url $az_devops_access_token --verbose')
 
/databricks/python/lib/python3.8/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
   2325                 kwargs['local_ns'] = self.get_local_scope(stack_depth)
   2326             with self.builtin_trap:
-> 2327                 result = fn(*args, **kwargs)
   2328             return result
   2329 
 
<decorator-gen-109> in pip(self, line)
 
/databricks/python/lib/python3.8/site-packages/IPython/core/magic.py in <lambda>(f, *a, **k)
    185     # but it's overkill for just that one bit of state.
    186     def magic_deco(arg):
--> 187         call = lambda f, *a, **k: f(*a, **k)
    188 
    189         if callable(arg):
 
/databricks/python_shell/dbruntime/CondaMagicOverrides.py in pip(self, line)
     26     @line_magic
     27     def pip(self, line):
---> 28         self.condaMagicHandler.runCmd("pip", line)
     29 
     30 
 
/databricks/python_shell/dbruntime/CondaMagicOverrides.py in runCmd(self, magicCmd, line)
     47             self.entry_point.restartInterpAfterExecution()
     48         if parsedResult.rewrittenCommand():
---> 49             self.executeCondaCommand(parsedResult)
     50         envState.postExecute(parsedResult)
     51         if parsedResult.isMutation():
 
/databricks/python_shell/dbruntime/CondaMagicOverrides.py in executeCondaCommand(self, result)
     98             sys.stdout.flush()
     99             if returncode != 0:
--> 100                 raise subprocess.CalledProcessError(returncode, origCmd)
    101         finally:
    102             end = time.time()
 
CalledProcessError: Command 'pip install /dbfs/FileStore/pypi-libs/my-file.whl --index-url [REDACTED] --verbose' returned non-zero exit status 1.

3 REPLIES 3

Anonymous
Not applicable

Hi @William Scardua​ 

Great to meet you, and thanks for your question!

Let's see if your peers in the community have an answer to your question. Thanks.

Bartosz
New Contributor II

Hi @William_Scardua !
I'm having the same problem. Did you manage to fix it on your end?

Thanks!

Bartosz
New Contributor II

Hi @William_Scardua !
I changed the cluster runtime to 10.4 LTS and the error disappeared. 
Just letting you know, maybe it will help you too!
Cheers!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group