Comments (10)
thanks a lot @jackos for your prompt response in resolving this issue.
from mojo.
As shown on the screenshot, I see the modules installed, Still I am facing the issue. Thank You!
from mojo.
Hi @vishcodex can you please show me the output of running this with Mojo:
from python import Python
from os.env import getenv
def main():
var pre_init_lib = getenv("MOJO_PYTHON_LIBRARY")
if pre_init_lib:
print("\npython_lib:", pre_init_lib, end="\n\n")
sys = Python.import_module("sys")
print("----module-paths----")
for p in sys.path:
print(p)
print("\npython_lib:", getenv("MOJO_PYTHON_LIBRARY"))
print("python_exe:", getenv("PYTHONEXECUTABLE"))
from mojo.
And also the output of this command: mojo --version
from mojo.
Hi @jackos , Please find the output :-)
from mojo.
It looks like the conda environment isn't active, can you do:
/Users/AF82152/anaconda3/bin/conda init --all
Then restart your shell and do:
conda activate mojo
And try running again?
from mojo.
Yes @jackos , I have done it twice. Please find the screenshot.
from mojo.
What is the output when you run the command:
which -a python3
from mojo.
Please find below
from mojo.
Yes your conda environment should go to the top of PATH
when you activate it, but here you have /opt/homebrew/bin/python3
twice ahead of it. Try these until one of them fixes it:
- Restart your shell and activate again with
conda activate mojo
- Check your
~/.zshrc
or~/.bashrc
(whichever shell you're using) and make sure the conda activation script is at the end - Remove
anaconda3
withrm -r ~/anaconda3
(and delete the script out of your shell activation script) and installminiconda3
instead: https://docs.anaconda.com/free/miniconda/#quick-command-line-install
One of those should fix it, if nothing works you can explicitly add it to the top of your PATH
:
- Explicitly add the path at the end of your startup script:
export PATH="~/anaconda3/envs/mojo/bin:$PATH"
from mojo.
Related Issues (20)
- [BUG] Type Annotation Fails on Implicit Variable Declarations HOT 6
- [BUG] Issue popped up when installing Max HOT 3
- [BUG] segmentation fault NumPy matmul, LSP issue HOT 1
- [BUG] `atof` returns a wrong result for too big or too small exponents
- [BUG] Error encountered on update nightly/mojo HOT 3
- [BUG] Mojo compiler pretty prints `ImmutableStaticLifetime` incorrectly
- [Docs] HOT 1
- [Magic CLI] magic telemetry cannot find config
- [Magic CLI] error starting magic shell as notebook cell script (%%mojo) HOT 2
- [BUG] Tensor reshape only compiles when inlined
- [Feature Request] Add support for recursive `@parameter` closures HOT 2
- [BUG] Consume value with `_ = x^` HOT 4
- [BUG] `cannot implicitly convert 'K' value to 'K' in assignment` in condicional conformance
- [BUG] Calling functions stored in aliased collection segfaults
- [BUG] Inferring types from a function signature
- [BUG] Error inferring the right method when invoking conditional conformance with trait inheritance HOT 1
- [BUG] (nightly) Raising init causing `use of uninitialized variable` HOT 1
- [BUG] b64decode does not handle whitespaces HOT 3
- [BUG] Max Graph can't concat two custom ops
- [BUG] Accessing aliased list of lists gives nonsense HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mojo.