Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

anaconda3

How to specify the architecture or platform for a new conda environment? (Apple Silicon)

January 5, 2024 by Tarik

CONDA_SUBDIR=osx-arm64 conda create -n native numpy -c conda-forge will get you a osx-arm64 native env. To make it permanent, do, conda activate native conda config –env –set subdir osx-arm64

Categories anaconda Tags anaconda, anaconda3, conda, miniconda Leave a comment

Anaconda Error – module ‘brotli’ has no attribute ‘error’

August 27, 2023 by Tarik

I solved this issue by commenting lines 376 & 377 in the file C:\ProgramData\Anaconda3\Lib\site-packages\urllib3\response.py and then install brotli library by running either pip install brotli or conda install brotli After successful installation, uncomment above lines. Do whatever you want now. Error should not come.

Categories python Tags anaconda, anaconda3, conda, python Leave a comment

Cannot set up a conda environment with python 3.10

August 7, 2023 by Tarik

Thats a bug in conda, you can read more about it here: https://github.com/conda/conda/issues/10969 Right now there is a PR to fix it but its not a released version. For now, just stick with conda install python=3.9

Categories conda Tags anaconda3, conda Leave a comment

PytestUnknownMarkWarning: Unknown pytest.mark.xxx – is this a typo?

June 8, 2023 by Tarik

To properly handle this you need to register the custom marker. Create a pytest.ini file and place the following inside of it. [pytest] markers = webtest: mark a test as a webtest. Next time you run the tests, the warning about the unregistered marker will not be there.

Categories python-3.x Tags anaconda3, pytest, pytest-markers, python-3.x Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa