How to modify existing conda install to fix bug? - python

I am running into an Anaconda bug described in this Github issue: https://github.com/conda/conda/issues/2965
The reporter indicates that if we makes some changes to Anaconda, he can fix the problem. I have installed Anaconda on my Max (OS X 10.11.6), and I am having the trouble reported by this issue while following instructions to install TensorFlow. I'm wondering whether someone can tell me how to find and modify my Conda installation to test out the proposed bug fix listed in the issue? Also are there files I can simply modify or will I need to recompile or reinstall after? I am a newbie to this sort of thing, so any advice would be appreciated.

Related

Spyder internal problem , how do i fix it?

I am completely new to coding. However, when i try to run some code as shown, this problem shows up. I tried reinstalling but it doesn't work.
(Spyder maintainer here) Sorry for the inconvenience. This is an error in Anaconda, which we already reported to them but it hasn't been fixed yet.
If you only need to use create Python programs, please consider to download and install our Windows installer, which you can find here and doesn't have this problem.

How do I resolve #error: architecture not supported during pip install psutil?

I've run into some problems while trying to download packages with pip. Namely, when I run
pip install "dask[complete]"
on MacOS Catalina 10.15.7. Specifically, the package that throws this error is psutil.
I run into an #error: architecture not supported message. I believe this is because the installer is looking for the MacOS 10.14.6 SDKs, but I am on 10.15.7. One user on this post stated that installing a new Python 3 fixed the issue. Maybe this is because the newer Python comes with a cached version of the package that uses the MacOS 10.15.7 SDKs.
I'm guessing that there might be two solutions to this issue:
Download a non-cached version of psutil, which might be compatible with the version of Python I'm using as well as MacOS Catalina.
Download a newer version of Python 3, namely 3.8.5+, and replace the Xcode Python 3 with this version, enabling me to stay up-to-date with current Python and packages.
I'm wary of the second method because of any possible dependencies I will lose while updating, and I've also been made very aware through research that generally speaking, you don't want to mess with system Python installations.
I'm not opposed to being walked through the first solution, if it would indeed solve the problem, but am very curious about the second solution, again, if it is possible. If neither approach would work out as intended, has anyone encountered this issue and resolved it without using a fresh, SEPARATE install of Python? I don't really want to start messing with virtual environments, but if I must, I supposed I will just download PyCharm and restart there.
EDIT: After continuing to try to work around the issue, I've been led to believe that it is not being caused by an outdated version of psutil; could it be an outdated version of setup.py? In this case, would it indeed be an issue with an old Python version? I'm very new to configuring Python in depth like this, any help would be greatly appreciated.
Try setting the environment variable ARCHFLAGS="-arch x86_64" so Xcode 12 doesn't try to build an ARM64 universal binary. It worked for me on a different python package that had the same error.
ARCHFLAGS="-arch x86_64" pip install "dask[complete]"
(Thanks to Keith Smiley's comment at on Bitbucket for pointing this out.)

Cannot import sklearn in my jupyter notebook

I installed anaconda and started working on jupyter notebook.
When i try and import sklearn i get the error shown in the image (note that i didn't had any problems importing other packages).
I've done a bit of research online and from my understanding i believe the issue exists because i already have sklearn installed on Python and there's a possible conflict.
If that's the case i don't know what to do since i already use sklearn on another project and i cannot uninstall it.
Anyone know how i can solve this issue?
Thanks in advance!
As you can see from the traceback, there are two python environments involved here:
~\AppData\roaming\python\Python37
~\anaconda3
Please make sure your PATH is clean and you can actually remove one of them first.
For anyone that might face the same issue, check your Anaconda and Python.
I had Anaconda on 64-bit and i didn't knew that by default Python is downloaded on 32-bit.
After uninstalling and installing Anaconda to 32-bit everything worked fine

Installing linters on Atom using a MacBook

I am a beginner coder and have installed anaconda and atom on my MacBook. So far everything was working well - until I tried to install linters into Atom. I tried linter-flake8 first with the terminal using pip install flake8, next in atom I installed linter-flake8 and it’s dependencies. Still nothing was happening and no error highlights appeared even when I made deliberate mistakes in a python file. The same problem is happening with linter-pylint.
Can you please advise in the simplest way with basic steps I can take to solve this? Most of the solutions provided online are quite complex and I can’t understand them. Also most solutions center around windows operating systems.
Many thanks
First install this package https://atom.io/packages/linter
and you can use this second package for python language https://atom.io/packages/linter-python.
Otherwise you find all linter-package here.

Getting issue on terminal command while creating opencv2.framework

I was facing some issues with opencv2.framework in iOS related to bitcode. While searching on the internet, I found this post regarding creating the opencv2.framework with bitcode support enabled.
First 3 steps run successfully but on 4th step, i am facing some issue. I dont know whether these are issues regarding to python or something else. Kindly help me. Here are the logs.
I get the same issue. My solution is that:
Check cmake has been installed. If not, use home brew to install cmake: brew install cmake.
Then run python ../bulid_framework.py <your_save_dic>
Good luck.

Categories