These days I had a problem in my computer, and I would like to share with you. I have a macbook pro, and sometimes I'm using the terminal to work. I'm using brew to install some command line utilities as python. The point is , sometimes brew ask you for updating, and all the tools in general, so I always say that yes, update all please. What the problem? sometimes things leaves to works, and who know why. Theses days was in this way. A command tool needed to the python 3.7 and now I had the 3.9 version. In the past the tool was working fine, but not now. So I began to investigate. the error said bad interpreter: /usr/local/opt/python/bin/python3.7 no such file or directory. I was looking in internet for the error and nothing. It looked like the tool was demanding the python3.7 version that I haven't got at this moment. So to fix it, I had to remove all the python and pip versions at the computer, using the 'rm -rf ' command. I know that is not the best option, but people adviced that. After that I updated brew, reinstalled another time the python 3.7 version and I started to remove the symbolic links in the /usr/local/opt/python folder to point to the new python3.7 folder. I reinstalled another time pip, and the tool began to work. I know, it's a lot things to do to solve it, but finally I achieved it. Now I'm happy and my computer is working fine with the tools that are using python. #WebDevelopment
2 comments
I think using docker could be your answer. Look into docker technologies as it addresses this.. what if you have code that only works on a specific hardware server and that server bites it? Docker seems to be able to create containers for your app or programs specific needs and port it around pretty efficiently. https://en.wikipedia.org/wiki/Docker_(software)
yes i love docker... we are using it for production more than development task, but you are right, docker in this cases can be solution!!! 👌🏻😃