Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Introduction to NumPy Meet NumPy Getting Setup

Tatiane Lima
Tatiane Lima
6,738 Points

/.bash_profile: Permission denied

Hello, I think i have a problem, when i was updating the .bash_profile i got an error:

This were the steps (showed in the video) that i followed

mkdir intro-to-numpy
cd intro-to-numpy/
intro-to-numpy ux-contaazul$ conda create -n 100days numpy jupyter
Solving environment: done
intro-to-numpy ux-contaazul$ conda activate 100days
/anaconda3/etc/profile.d/conda.sh" >> ~/.bash_profile
/.bash_profile: Permission denied <<<--- error

Someone can help me?

1 Answer

One probable issue is that the .bash_profile file was created under the ownership of root or some other user. Try this..

sudo bash

Before the other commands. A long term solution would be to change the ownership of the .bash_profile file. This can be done through the GUI or try

sudo do chown _your_username ~/.bash_profile

Happy coding